Files
orangecat/scripts/dev/get_current_datetime.js
Your NameandClaude 2872828779 chore: version 0.1.1 deployment - fix configuration and dependencies
- Bump version to 0.1.1 for tracking
- Add webpack-bundle-optimizer script for Next.js config
- Simplify ESLint configuration to resolve missing dependencies
- Prepare for production deployment with proper version control

This deployment includes:
- Profile update fixes with banner_url support
- LN address validation
- Auth cookie fixes for profile updates
- Various documentation and testing improvements

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 09:30:45 +02:00

48 lines
1.1 KiB
JavaScript

#!/usr/bin/env node
/**
* Get Current Date and Time
*
* This script provides the current date and time in various formats.
* It can be used to ensure consistent date/time usage across the project.
*
* Created: June 5, 2025
* Last Modified: June 5, 2025
* Last Modified Summary: Initial creation
*/
const now = new Date();
// ISO format (YYYY-MM-DDTHH:mm:ss.sssZ)
const iso = now.toISOString();
// Date only (YYYY-MM-DD)
const dateOnly = now.toISOString().split('T')[0];
// Time only (HH:mm:ss)
const timeOnly = now.toTimeString().split(' ')[0];
// Full date and time (YYYY-MM-DD HH:mm:ss)
const fullDateTime = `${dateOnly} ${timeOnly}`;
// Unix timestamp
const unixTimestamp = Math.floor(now.getTime() / 1000);
// Output all formats
// REMOVED: console.log statement
// REMOVED: console.log statement
// REMOVED: console.log statement
// REMOVED: console.log statement
// REMOVED: console.log statement
// REMOVED: console.log statement
// REMOVED: console.log statement
// Export the values for use in other scripts
module.exports = {
iso,
dateOnly,
timeOnly,
fullDateTime,
unixTimestamp,
raw: now
};