Package: gawk Version: 1:3.1.8+dfsg-0.1 Severity: normal Dear Maintainer,
With the following program (test.awk): ---<--------------------cut here---------------start------------------->--- {print fix_time($0)} function fix_time(tstr) { # tstr=time string field if (length(tstr) != 21 || !tstr) { return tstr } else { Y=substr(tstr, 2, 4) M=substr(tstr, 7, 2) D=substr(tstr, 10, 2) h=substr(tstr, 13, 2) m=substr(tstr, 16, 2) s=substr(tstr, 19, 2) t=mktime(sprintf("%s %s %s %s %s %s", Y, M, D, h, m, s)) return strftime("%Y-%m-%d %H:%M:%S", t) } } ---<--------------------cut here---------------end--------------------->--- $ echo '"2012-03-11 01:00:00"' | gawk -f test.awk 2012-03-11 01:00:00 $ echo '"2012-03-11 02:00:00"' | gawk -f test.awk 2012-03-11 03:00:00 $ echo '"2012-03-11 03:00:00"' | gawk -f test.awk 2012-03-11 03:00:00 $ echo '"2012-03-11 04:00:00"' | gawk -f test.awk 2012-03-11 04:00:00 $ echo '"2012-03-12 01:00:00"' | gawk -f test.awk 2012-03-12 01:00:00 $ echo '"2012-03-12 02:00:00"' | gawk -f test.awk 2012-03-12 02:00:00 $ echo '"2012-03-12 03:00:00"' | gawk -f test.awk 2012-03-12 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. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing-proposed-updates'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gawk depends on: ii libc6 2.13-27 ii libsigsegv2 2.9-4 gawk recommends no packages. gawk suggests no packages. -- no debconf information -- Seb -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org