date doesn't take the timezone anymore #1

Open
opened 2026-02-18 14:09:33 +00:00 by fliegerjohn · 0 comments
Owner

Date was ment to convert to same timezone in case the cameras use different timezones.
This doesn't work anymore:
$ date -d "2026-01-05 10:06:56+0100" "+%Y%m%d_%H%M%S"
date: invalid date '2026-01-05 10:06:56+0100'
Quick fix:
Don't use date and just leave the timezone in the name.

Date was ment to convert to same timezone in case the cameras use different timezones. This doesn't work anymore: `` $ date -d "2026-01-05 10:06:56+0100" "+%Y%m%d_%H%M%S" `` `` date: invalid date '2026-01-05 10:06:56+0100' `` Quick fix: Don't use date and just leave the timezone in the name.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
shell-scripts/name2timestamp#1
No description provided.