Skip to content

feat: cross-platform date handling library (DOJ-2430)#7

Open
dbejarano820 wants to merge 1 commit intomainfrom
daniel/doj-2430-date-handling
Open

feat: cross-platform date handling library (DOJ-2430)#7
dbejarano820 wants to merge 1 commit intomainfrom
daniel/doj-2430-date-handling

Conversation

@dbejarano820
Copy link
Contributor

Summary

  • Created scripts/lib/date-compat.sh with GNU/BSD/python3 support
  • Functions: date_today, date_yesterday, date_to_epoch, date_days_ago, date_now_iso
  • Updated session-start.sh and quiz-selector.sh to use helpers
  • All dates stored in UTC consistently

Test plan

  • bash -n passes on all modified scripts
  • Date functions work on macOS (BSD date)
  • Date functions work on Linux (GNU date)
  • python3 fallback works when date commands fail

Closes DOJ-2430

🤖 Generated with Claude Code

Create scripts/lib/date-compat.sh with date_today, date_yesterday,
date_to_epoch, date_days_ago, and date_now_iso helpers.
All dates use UTC consistently.

Closes DOJ-2430

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dbejarano820
Copy link
Contributor Author

🤖 This PR has had no activity for 1+ days.

If it's still needed, please:

  • Resolve any conflicts
  • Address review feedback
  • Push an update

If it's no longer needed, please close it.

— Dojito (automated PR gardener)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant