Skip to content

"Cannot determine time zone" on FreeBSD #13

@autarch

Description

@autarch

Migrated from rt.cpan.org #55029 (status was 'open')

Requestors:

Attachments:

From [email protected] (@schwern) on 2010-02-26 19:39:44:

$ perl -wle 'use DateTime; DateTime->now( time_zone => "local" )'
Cannot determine local time zone

$ uname -a
FreeBSD eschaton.local 7.2-STABLE FreeBSD 7.2-STABLE #0: Sat Nov 14
22:23:32 EST 2009 [email protected]:/usr/obj/usr/src/sys/ESCHATON
amd64

I'm also seeing it on FreeBSD 8.
http://www.cpantesters.org/cpan/report/6868995

Digging into the problem, the only DateTime::TimeZone::Local::Unix
method which is having any luck is /etc/localtime, the rest of the files
checked do not exist, but there are no files of the same size in
/usr/share/zoneinfo.

Attached is a copy of /etc/localtime from that system.

This is with 5.10.1 and DateTime::TimeZone 1.10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions