Sebastian Luque wrote: > $ echo '"2012-03-11 02:00:00"' | gawk -f test.awk > 2012-03-11 03:00:00 > ... > Daylight savings for my local time zone (Central Time) started on > 2012-03-11. Time is not interpreted correctly for the second hour of > the day when daylight savings starts.
Please state your canonical timezone? Central Time by itself is ambiguous. But I can guess. Note that 2012-03-11 02:00:00 is an invalid date in Central time. There is no correct interpretation possible. Or perhaps the only correct interpretation would be to throw an exception error. $ TZ=US/Central date -R -d '2012-03-11 02:00:00' date: invalid date `2012-03-11 02:00:00' What should awk do with invalid dates? Should it report them as invalid as gnu date does? Probably. See this useful reference for coreutils date. (Of course I am biased about its usefulness. :-) http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e Bob -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org