You are not logged in.

#1 2014-10-24 16:56:03

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 903
Website

Perl can not determine Timezone

# perl -T -MDateTime::TimeZone::Local -le 'print 
DateTime::TimeZone::Local->TimeZone()->name'
Cannot determine local time zone

But Timezone seems to be set correctly

# timedatectl 
      Local time: Fr 2014-10-24 18:55:06 CEST
  Universal time: Fr 2014-10-24 16:55:06 UTC
        RTC time: Fr 2014-10-24 16:55:04
       Time zone: Europe/Berlin (CEST, +0200)
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  So 2014-03-30 01:59:59 CET
                  So 2014-03-30 03:00:00 CEST
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  So 2014-10-26 02:59:59 CEST
                  So 2014-10-26 02:00:00 CET
# date
Fr 24. Okt 18:55:06 CEST 2014

Offline

#2 2014-10-24 17:58:51

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 903
Website

Re: Perl can not determine Timezone

It seems to work if i use TZ="UTC"

But this causes a wrong Time of course wink

Offline

#3 2014-10-24 18:43:19

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 903
Website

Re: Perl can not determine Timezone

Found.

The DateTime::TimeZone is completely useless/unuseable without the AllUtils Package

https://aur.archlinux.org/packages/perl-list-allutils/

So this package (even if its in AUR) have to be an dependency... seems like a bug to me

https://bugs.archlinux.org/task/42531

Last edited by Vamp898 (2014-10-24 18:47:41)

Offline

Board footer

Powered by FluxBB