mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-03 22:17:21 +01:00
- 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>
46 lines
1.0 KiB
Bash
46 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
# 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
|
|
|
|
# Get current date and time
|
|
NOW=$(date)
|
|
|
|
# Get ISO format
|
|
ISO=$(date -u +"%Y-%m-%dT%H:%M:%S.%3NZ")
|
|
|
|
# Get date only (YYYY-MM-DD)
|
|
DATE_ONLY=$(date +"%Y-%m-%d")
|
|
|
|
# Get time only (HH:mm:ss)
|
|
TIME_ONLY=$(date +"%H:%M:%S")
|
|
|
|
# Get full date and time (YYYY-MM-DD HH:mm:ss)
|
|
FULL_DATETIME=$(date +"%Y-%m-%d %H:%M:%S")
|
|
|
|
# Get Unix timestamp
|
|
UNIX_TIMESTAMP=$(date +%s)
|
|
|
|
# Output all formats
|
|
echo "Current Date and Time:"
|
|
echo "---------------------"
|
|
echo "Full Format: $NOW"
|
|
echo "ISO Format: $ISO"
|
|
echo "Date Only: $DATE_ONLY"
|
|
echo "Time Only: $TIME_ONLY"
|
|
echo "Full DateTime: $FULL_DATETIME"
|
|
echo "Unix Timestamp: $UNIX_TIMESTAMP"
|
|
|
|
# Export variables for use in other scripts
|
|
export NOW
|
|
export ISO
|
|
export DATE_ONLY
|
|
export TIME_ONLY
|
|
export FULL_DATETIME
|
|
export UNIX_TIMESTAMP |