[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#160683: marked as done (date: long timezone offset sighlently changed)



Your message dated Mon, 16 Apr 2007 01:34:39 +0200
with message-id <20070415233439.GA2839@artemis>
and subject line Bug#160683: date: long timezone offset sighlently changed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: shellutils
Version: 2.0.11-11
Severity: normal

An ugly shell script hack that has worked for many years on many
unix versions to get the previous days date is to set TZ to a large 
offset:

TZ=PST32PDT date "+%m.%d.%y"

would display the previous days date (Pacific time).

Gnu date apperently siglently limits the timezone offset to 23, so the
above command will SOMETIMES show todays date instead with no error
message.  (The SOMETIMES makes this even harder to debug.)  This
breaks portable and older shell scripts.  (I realize there are better
ways of doing this using Gnu date, but they don't work on solaris or
aix.)

I'd like to see date made compatable with this hack, or at least have
it give an error rather than the wrong date.


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux monkey 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages shellutils depends on:
ii  libc6                        2.2.5-11.1  GNU C Library: Shared libraries an
ii  login                        20000902-12 System login tools



--- End Message ---
--- Begin Message ---
Version: 2.5

On Thu, Sep 12, 2002 at 12:10:48PM -0700, Blars Blarson wrote:
> Package: shellutils
> Version: 2.0.11-11
> Severity: normal
> 
> An ugly shell script hack that has worked for many years on many
> unix versions to get the previous days date is to set TZ to a large 
> offset:
> 
> TZ=PST32PDT date "+%m.%d.%y"
> 
> would display the previous days date (Pacific time).
> 
> Gnu date apperently siglently limits the timezone offset to 23, so the
> above command will SOMETIMES show todays date instead with no error

  that's correct, this is also another libc bug, which I don't remember
the # of, that is fixed in 2.3.5 afaict.

  hence closing.


-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpVqPPxGY7f0.pgp
Description: PGP signature


--- End Message ---

Reply to: