Perl DateTime::Calendar::FrenchRevolutionary timezone problem
Jump to:
Project: | Linux software |
Component: | Documentation |
Category: | bug report |
Priority: | normal |
Assigned: | Unassigned |
Status: | active |
Related pages: | #5655: French Republican Calendar |
Tags: | French Republican calendar, locale, Perl DateTime::Calendar::FrenchRevolutionary, timezone |
Description
Right now, in my timezone, it 18:15 (UTC+8:00).
$ date
Thu 11 Feb 18:15:36 CST 2016
The local decimal time is 7:58.
However, if I do either of the following, I get the GMT (or Paris?) decimal time:
$ perl -MDateTime::Calendar::FrenchRevolutionary -le 'print DateTime::Calendar::FrenchRevolutionary->now->strftime("%c")'
Tri 23 Plu 0224 4:27:05
$t=`date +%s` ; perl -MDateTime::Calendar::FrenchRevolutionary -le "print DateTime::Calendar::FrenchRevolutionary->from_epoch(epoch => $t)->strftime('%c')"
Tri 23 Plu 0224 4:27:11
I.e. I get 4:27 when I expect 7:58.
Comments
#1
Right now, I am using the one liner hack:
$ t=`date +%s` ; let t=t+8*3600; perl -MDateTime::Calendar::FrenchRevolutionary -le "print DateTime::Calendar::FrenchRevolutionary->from_epoch(epoch => $t)->strftime('%c')"