Bug#832550: tzdata: Certain zone abbreviations do not support round-trip conversion

2016-07-26 Thread Aurelien Jarno
control: reassign -1: coreutils
control: retitle -1: coreutils: date doesn't know about AEST timezone

On 2016-07-26 11:45, Mark Stafford wrote:
> Package: tzdata
> Version: 2016f-0+deb8u1
> Severity: normal
> 
> Dear Maintainer,
> 
> I was attempting to write a script something like a world clock to help 
> schedule a task in six time zones.
> 
> * What exactly did you do (or not do) that was effective (or ineffective)?
> * What was the outcome of this action?
> * What outcome did you expect instead?
> 
> Steps to reproduce:
> 
> # the alias isn't necessary, but it simplifies the demonstration
> alias lax="TZ='America/Los_Angeles' date --date=@1469558444 '+%Y-%m-%d %H:%M 
> %Z'"
> alias syd="TZ='Australia/Sydney' date --date=@1469558444 '+%Y-%m-%d %H:%M %Z'"
> lax
> syd
> date --date "$( lax )"
> date --date "$( syd )"
> 
> bug symptom:
>   2016-07-26 11:40 PDT
>   2016-07-27 04:40 AEST
>   Tue Jul 26 11:40:00 PDT 2016
>   date: invalid date ‘2016-07-27 04:40 AEST’
> 
> expected behavior:
>   2016-07-26 11:40 PDT
>   2016-07-27 04:40 EST
>   Tue Jul 26 11:40:00 PDT 2016
>   Wed Jul 27 02:40:00 PDT 2016

"date -d" parses the timezone itself without the help of tzdata, and it
indeed doesn't know about the AEST timezone. I am therefore reassigning
the bug to coreutils.

Aurelien

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net



Bug#832550: tzdata: Certain zone abbreviations do not support round-trip conversion

2016-07-26 Thread Mark Stafford
Package: tzdata
Version: 2016f-0+deb8u1
Severity: normal

Dear Maintainer,

I was attempting to write a script something like a world clock to help 
schedule a task in six time zones.

* What exactly did you do (or not do) that was effective (or ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?

Steps to reproduce:

# the alias isn't necessary, but it simplifies the demonstration
alias lax="TZ='America/Los_Angeles' date --date=@1469558444 '+%Y-%m-%d %H:%M 
%Z'"
alias syd="TZ='Australia/Sydney' date --date=@1469558444 '+%Y-%m-%d %H:%M %Z'"
lax
syd
date --date "$( lax )"
date --date "$( syd )"

bug symptom:
  2016-07-26 11:40 PDT
  2016-07-27 04:40 AEST
  Tue Jul 26 11:40:00 PDT 2016
  date: invalid date ‘2016-07-27 04:40 AEST’

expected behavior:
  2016-07-26 11:40 PDT
  2016-07-27 04:40 EST
  Tue Jul 26 11:40:00 PDT 2016
  Wed Jul 27 02:40:00 PDT 2016

-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tzdata depends on:
ii  debconf [debconf-2.0]  1.5.56

tzdata recommends no packages.

tzdata suggests no packages.

-- debconf information:
  tzdata/Zones/Europe:
  tzdata/Zones/SystemV:
  tzdata/Zones/Australia:
  tzdata/Zones/US:
* tzdata/Zones/Etc: UTC
* tzdata/Zones/America: Los_Angeles
  tzdata/Zones/Antarctica:
  tzdata/Zones/Atlantic:
  tzdata/Zones/Africa:
  tzdata/Zones/Arctic:
  tzdata/Zones/Indian:
  tzdata/Zones/Asia:
  tzdata/Zones/Pacific:
* tzdata/Areas: America