[Bug 354793] Re: date returns "invalid date" for some timezone's DST

2015-10-17 Thread Eduardo
It happens on Ubuntu 14.04 too.

# date
Sun Oct 18 02:08:18 BRST 2015

# date --date=2015-10-18
date: invalid date ‘2015-10-18’


# date --date=2015-10-19
Mon Oct 19 00:00:00 BRST 2015

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 14.04.3 LTS
Release:14.04
Codename:   trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/354793

Title:
  date returns "invalid date" for some timezone's DST

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/354793/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 354793] Re: date returns invalid date for some timezone's DST

2011-10-24 Thread Sven Ehret
It is still not working as expected with Lucid.

And it's breaking a script of mine, sending every instance to an
endless, CPU eating loop…

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/354793

Title:
  date returns invalid date for some timezone's DST

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/354793/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 354793] Re: date returns invalid date for some timezone's DST

2010-03-28 Thread gep
I have a problem setting the date on:

g...@gep-work:~$ sudo date 03280243
date: invalid date `03280243'

But:

g...@gep-work:~$ sudo date 03280343
Sun Mar 28 03:43:00 EEST 2010

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-11-17 Thread tocals
same error:
date: invalid date `2009/10/18'

==
Linux hp-work 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:32 UTC 2009 
x86_64 GNU/Linux
-
date --version
date (GNU coreutils) 6.10
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.
-

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-20 Thread Jamie Strandboge
http://www.ubuntu.com/usn/usn-762-1

** Changed in: apt (Ubuntu Dapper)
   Status: Fix Committed = Fix Released

** Changed in: apt (Ubuntu Hardy)
   Status: Fix Committed = Fix Released

** Changed in: apt (Ubuntu Intrepid)
   Status: Fix Committed = Fix Released

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-18 Thread Thijs Kinkhorst
** CVE added: http://www.cve.mitre.org/cgi-
bin/cvename.cgi?name=2009-1300

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-17 Thread Jamie Strandboge
I won't have an upload for Gutsy, because I won't be publishing this
until next week, and Gutsy will be EOL.

** Changed in: apt (Ubuntu Gutsy)
   Status: In Progress = Won't Fix

** Changed in: apt (Ubuntu Dapper)
   Status: In Progress = Fix Committed

** Changed in: apt (Ubuntu Hardy)
   Status: In Progress = Fix Committed

** Changed in: apt (Ubuntu Intrepid)
   Status: In Progress = Fix Committed

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-16 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 0.7.20.2ubuntu6

---
apt (0.7.20.2ubuntu6) jaunty; urgency=low

  [ Jamie Strandboge ]
  * apt.cron.daily: catch invalid dates due to DST time changes
in the stamp files (LP: #354793)

  [ Michael Vogt ]
  * methods/gpgv.cc:
- properly check for expired and revoked keys (closes: #433091)
  LP: #356012

 -- Michael Vogt michael.v...@ubuntu.com   Wed, 08 Apr 2009 22:39:50
+0200

** Changed in: apt (Ubuntu Jaunty)
   Status: In Progress = Fix Released

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-10 Thread Steve Langasek
** Changed in: apt (Ubuntu Jaunty)
 Assignee: (unassigned) = Michael Vogt (mvo)

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread Jamie Strandboge
** Summary changed:

- date error on saving time starting day
+ date returns invalid date for some timezone's DST

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread Jamie Strandboge
** Also affects: apt (Ubuntu Jaunty)
   Importance: High
   Status: In Progress

** Also affects: coreutils (Ubuntu Jaunty)
   Importance: Medium
   Status: Won't Fix

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread Jamie Strandboge
Alexandre: 'now' shouldn't need to be fixed, because date will get the
system time and convert it to the proper date. The problem comes with
'stamp' using 'date -r' on a file on the system, which could conceivably
have the wrong date. Please correct me if I missed something.

As for coreutils, upstream (ie, not me or Ubuntu) has decided that the
time in question and other dates such as 'Feb 30' are wrong because they
don't exist and choose to express that as an error condition. As such,
we need to adjust our tools/scripts to account for this.

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread Jamie Strandboge
Alexandre: I see the issue with 'now' now. Since we use 'date
--iso-8601' and feed that to date, then the hour, minute and second are
all zero. My patch doesn't properly address using --iso-8601 for stamp
either. I'll send an updated patch in a few minutes.

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread C de-Avillez
I agree that other scripts may probably also be hit by this type of
error. Nevertheless, 'date' *does* return a non-zero return code if an
error if found; *not* checking if a command ended in error is a much
more serious programming error than this, ah, invalid date returned.
With that said, if 'date' did not return a non-zero RC on this... then
*this* is certainly a bug, no doubt.

The behaviour of 'date' is well-documented (or, at least, well,
documented), and this type of 'invalid' return can happen. We can
discuss upstream (in the same mailing list you quoted) -- this would be
the best venue. I can see -- and, again, quoting from the email thread
you provided -- that a case that 'date' should return the first
available time in a date, instead or erroring out if 00:00:00 (or some
other time/date/TZ combination) does not exist.

Just be aware that this will be a short blanket thing, since (now) the
apt cron scripts will work, but somewhere out in the wild world someone
will have a script that depends on the day beginning at 00:00:00... and
this will now fail!

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread Jamie Strandboge
Here is an updated patch. It should now properly handle --iso-8601 for
'stamp' and 'now'.  This patch is against 0.7.20.2ubuntu5 in Jaunty.

** Also affects: apt (Ubuntu Intrepid)
   Importance: Undecided
   Status: New

** Also affects: coreutils (Ubuntu Intrepid)
   Importance: Undecided
   Status: New

** Also affects: apt (Ubuntu Hardy)
   Importance: Undecided
   Status: New

** Also affects: coreutils (Ubuntu Hardy)
   Importance: Undecided
   Status: New

** Also affects: apt (Ubuntu Dapper)
   Importance: Undecided
   Status: New

** Also affects: coreutils (Ubuntu Dapper)
   Importance: Undecided
   Status: New

** Also affects: apt (Ubuntu Gutsy)
   Importance: Undecided
   Status: New

** Also affects: coreutils (Ubuntu Gutsy)
   Importance: Undecided
   Status: New

** Changed in: coreutils (Ubuntu Dapper)
   Status: New = Won't Fix

** Changed in: coreutils (Ubuntu Gutsy)
   Status: New = Won't Fix

** Changed in: coreutils (Ubuntu Hardy)
   Status: New = Won't Fix

** Changed in: coreutils (Ubuntu Intrepid)
   Status: New = Won't Fix

** Changed in: apt (Ubuntu Dapper)
   Status: New = In Progress

** Changed in: apt (Ubuntu Dapper)
   Importance: Undecided = High

** Changed in: apt (Ubuntu Dapper)
 Assignee: (unassigned) = Jamie Strandboge (jdstrand)

** Changed in: apt (Ubuntu Gutsy)
   Status: New = In Progress

** Changed in: apt (Ubuntu Gutsy)
   Importance: Undecided = High

** Changed in: apt (Ubuntu Gutsy)
 Assignee: (unassigned) = Jamie Strandboge (jdstrand)

** Changed in: apt (Ubuntu Hardy)
   Status: New = In Progress

** Changed in: apt (Ubuntu Hardy)
   Importance: Undecided = High

** Changed in: apt (Ubuntu Hardy)
 Assignee: (unassigned) = Jamie Strandboge (jdstrand)

** Changed in: apt (Ubuntu Intrepid)
   Status: New = In Progress

** Changed in: apt (Ubuntu Intrepid)
   Importance: Undecided = High

** Changed in: apt (Ubuntu Intrepid)
 Assignee: (unassigned) = Jamie Strandboge (jdstrand)

** Attachment added: 354793_v2.patch
   http://launchpadlibrarian.net/25053031/354793_v2.patch

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread Jamie Strandboge
Here is a simple test case for the bug. It will return '2' if the stamp
file has a bad date, '1' if 'now' is a bad date (this is hardcoded) and
'0' if all is well. The code is the same as in the patch, except for the
return codes and hardcoded 'now'. Note, you need to have your timezone
set to America/San_Paulo.

** Attachment added: 354793_test.sh
   http://launchpadlibrarian.net/25053110/354793_test.sh

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 354793] Re: date returns invalid date for some timezone's DST

2009-04-08 Thread Jamie Strandboge
Here is a tar file which contains the file 'foo', with a date that will
trigger the bug.  To use with the test case:

$ tar -xvf ./354793.tar 
foo
tar: foo: time stamp 2009-10-18 01:00:00 is 16613753.588577226 s in the future
$ ./354793_test.sh ./foo ; echo $?
2
$ ./354793_test.sh ./foo ; echo $?
date: ./foo: No such file or directory
1

The first run removed the file, and the second checked the hard coded
date.

** Attachment added: 354793.tar
   http://launchpadlibrarian.net/25058690/354793.tar

-- 
date returns invalid date for some timezone's DST 
https://bugs.launchpad.net/bugs/354793
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs