Re: date manupulation strangeness

2008-02-07 Thread Ruslan Ermilov
On Mon, Oct 29, 2007 at 01:19:51AM +, Miguel Lopes Santos Ramos wrote: From: Holger Kipp [EMAIL PROTECTED] On Mon, Oct 29, 2007 at 01:35:08AM +0700, Eugene Grosbein wrote: On Sun, Oct 28, 2007 at 07:20:11PM +0100, Holger Kipp wrote: # unixtime=1193511599 # LC_ALL=C

Re: date manupulation strangeness

2008-02-07 Thread Eugene Grosbein
Ruslan Ermilov wrote: In summary, I think we should move line 268 to line 191 and erase the comment on line 267 (mktime() is no one to decide, strptime() must have the final word). I've committed a different fix, so that it doesn't re-introduce the bug fixed in rev. 1.36 (or

Re: date manupulation strangeness

2007-10-31 Thread Miguel Lopes Santos Ramos
From: Mike Pritchard [EMAIL PROTECTED] [...] DST/CST time changes when setting the time backwards has been at your own risk for a long time. Yes, but there's really not much reason for it to be so much of a black art. Actually, I think the old behaviour, prior to rev 1.36, although not ideal

Re: date manupulation strangeness

2007-10-30 Thread Miguel Lopes Santos Ramos
From: Holger Kipp [EMAIL PROTECTED] On Mon, Oct 29, 2007 at 01:35:08AM +0700, Eugene Grosbein wrote: On Sun, Oct 28, 2007 at 07:20:11PM +0100, Holger Kipp wrote: # unixtime=1193511599 # LC_ALL=C TZ=Asia/Krasnoyarsk date -jr $unixtime Sun Oct 28 02:59:59 KRAT 2007 Here it

Re: date manupulation strangeness

2007-10-29 Thread Mike Pritchard
On Mon, Oct 29, 2007 at 01:19:51AM +, Miguel Lopes Santos Ramos wrote: From: Holger Kipp [EMAIL PROTECTED] On Mon, Oct 29, 2007 at 01:35:08AM +0700, Eugene Grosbein wrote: On Sun, Oct 28, 2007 at 07:20:11PM +0100, Holger Kipp wrote: Sat Oct 27 18:59:59 UTC 2007 This is a lot of

date manupulation strangeness

2007-10-28 Thread Eugene Grosbein
Hi! # unixtime=1193511599 # LC_ALL=C TZ=Asia/Krasnoyarsk date -jr $unixtime Sun Oct 28 02:59:59 KRAT 2007 That's last second of Summer time in this time zone. # LC_ALL=C TZ=Asia/Krasnoyarsk date -f %s $unixtime Sun Oct 28 02:59:59 KRAT 2007 That's an hour later after the switch from Summer

Re: date manupulation strangeness

2007-10-28 Thread Holger Kipp
On Mon, Oct 29, 2007 at 12:48:32AM +0700, Eugene Grosbein wrote: Hi! # unixtime=1193511599 # LC_ALL=C TZ=Asia/Krasnoyarsk date -jr $unixtime Sun Oct 28 02:59:59 KRAT 2007 That's last second of Summer time in this time zone. # LC_ALL=C TZ=Asia/Krasnoyarsk date -f %s $unixtime Sun Oct

Re: date manupulation strangeness

2007-10-28 Thread Eugene Grosbein
On Sun, Oct 28, 2007 at 07:20:11PM +0100, Holger Kipp wrote: # unixtime=1193511599 # LC_ALL=C TZ=Asia/Krasnoyarsk date -jr $unixtime Sun Oct 28 02:59:59 KRAT 2007 Here it shows 'Sun Oct 28 02:59:59 KRAST 2007' really (cut-n-paste error, mea culpa). Take a note of zone name, KRAST stands

Re: date manupulation strangeness

2007-10-28 Thread Holger Kipp
On Mon, Oct 29, 2007 at 01:35:08AM +0700, Eugene Grosbein wrote: On Sun, Oct 28, 2007 at 07:20:11PM +0100, Holger Kipp wrote: # unixtime=1193511599 # LC_ALL=C TZ=Asia/Krasnoyarsk date -jr $unixtime Sun Oct 28 02:59:59 KRAT 2007 Here it shows 'Sun Oct 28 02:59:59 KRAST 2007' really

Re: date manupulation strangeness

2007-10-28 Thread Miguel Lopes Santos Ramos
From: Holger Kipp [EMAIL PROTECTED] On Mon, Oct 29, 2007 at 01:35:08AM +0700, Eugene Grosbein wrote: On Sun, Oct 28, 2007 at 07:20:11PM +0100, Holger Kipp wrote: # unixtime=1193511599 # LC_ALL=C TZ=Asia/Krasnoyarsk date -jr $unixtime Sun Oct 28 02:59:59 KRAT 2007 Here it