chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Timezone Handling in Chicken


From: Jeff Moon
Subject: [Chicken-users] Timezone Handling in Chicken
Date: Wed, 28 Nov 2018 13:53:55 -0700

If I run the following code under csi:
(use posix locale)
(locale-current#current-locale-components)
It runs fine, and returns the expected info.  However, if I do the following:
export TZ='America/Phoenix'
And then re-run it, I get the following:

Error: (parse-posix-literal-timezone) bad timezone STD offset: "America/Phoenix"

        Call history:

        <syntax>          (##core#undefined)
        <syntax>          (import scheme chicken (only posix seconds->local-time) (only type-errors warning-argument-type) loc......
        <syntax>          (##core#undefined)
        <syntax>          (##core#undefined)
        <syntax>          (##core#undefined)
        <syntax>          (##core#undefined)
        <eval>    (##sys#load-library (quote posix) #f)
        <eval>    (##sys#require (quote locale))
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        <syntax>          (locale-current#current-locale-components)
        <eval>    (locale-current#current-locale-components)    <--


The setting that I used for TZ is one of the options that is returned by the tzselect command, so it should be valid. 
Thanks,
Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]