On Wed, 02 Jul 2008 21:46:04 GMT
castord <castord@no-mx.forums.opensuse.org> wrote:
>
> This bug is causing me a lot of problems but seems impossible to
> workarround it. Apparently it just happens with the version 6.9 and
> with a particular date “2008-03-08 23:59:59”, not another. :mad:
> Look!
>
> Code:
> --------------------
>
> carlosnblnx:/home/carlos # date --date=’+1 seconds 2008-03-08
> 23:59:59’ ‘+%F %H:%M:%S’ 2008-03-08 23:00:00
>
> --------------------
>
> Should be 2008-03-09 00:00:00!!!
>
> Now with the same month and day but another year
>
> Code:
> --------------------
>
> carlosnblnx:/home/carlos # date --date=’+1 seconds 2007-03-08
> 23:59:59’ ‘+%F %H:%M:%S’ 2007-03-09 00:00:00
>
> --------------------
>
> Works!
> Finally, same year, day.
>
> Code:
> --------------------
>
> carlosnblnx:/home/carlos # date --date=’+1 seconds 2008-04-08
> 23:59:59’ ‘+%F %H:%M:%S’ 2008-04-09 00:00:00
>
> --------------------
>
> I really don’t know why this happens.
>
> date version
>
> Code:
> --------------------
>
> carlosnblnx:/srv/www/htdocs/show_stat # date --version
> date (GNU coreutils) 6.9
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software. You may redistribute copies of it under the
> terms of the GNU General Public License
> <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the
> extent permitted by law.
> Written by David MacKenzie.
>
> --------------------
>
>
Hi
Works fine here, before and after an update to the timezone data.
malcolml@gnome-vm:~> date --date=’+1 seconds 2008-03-08 23:59:59’ ‘+%F
%H:%M:%S’
2008-03-09 00:00:00
malcolml@gnome-vm:~> date --date=’+1 seconds 2007-03-08 23:59:59’ ‘+%F
%H:%M:%S’
2007-03-09 00:00:00
malcolml@gnome-vm:~> date --date=’+1 seconds 2008-04-08 23:59:59’ ‘+%F
%H:%M:%S’
2008-04-09 00:00:00
malcolml@gnome-vm:~> date --version
date (GNU coreutils) 6.9
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the
terms of the GNU General Public License
<http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the
extent permitted by law.
Written by David MacKenzie.
malcolml@gnome-vm:~> uname -a
Linux gnome-vm 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC
i686 athlon i386 GNU/Linux
malcolml@gnome-vm:~> cat /etc/SuSE-release
openSUSE 10.3 (i586)
VERSION = 10.3
malcolml@gnome-vm:~> date
Wed Jul 2 17:57:48 CDT 2008
malcolml@gnome-vm:~> rpm -qa |grep timezone
timezone-2007k-3.1
Now an update to timezone data
malcolml@gnome-vm:~> date --date=’+1 seconds 2008-03-08 23:59:59’ ‘+%F
%H:%M:%S’
2008-03-09 00:00:00
malcolml@gnome-vm:~> date --date=’+1 seconds 2007-03-08 23:59:59’ ‘+%F
%H:%M:%S’
2007-03-09 00:00:00
malcolml@gnome-vm:~> date --date=’+1 seconds 2008-04-08 23:59:59’ ‘+%F
%H:%M:%S’
2008-04-09 00:00:00
malcolml@gnome-vm:~> rpm -qa |grep timezone
timezone-2008c-0.1
malcolml@gnome-vm:~> date
Wed Jul 2 18:06:56 CDT 2008
Maybe something to do with your timezone?
–
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.23-smp
up 2 days 6:14, 2 users, load average: 0.36, 1.52, 1.24
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.09