Lonnie,

Out of interest, what should /etc/localtime look like, and is it a symlink?
Same for /etc/TZ?

Thanks

Matt

On Thu, Jan 21, 2010 at 5:23 AM, Lonnie Abelbeck
<li...@lonnie.abelbeck.com>wrote:

> Matt,
>
> I appears you are using the web interface, in the Network tab -> "Network
> Time Settings:" what Timezone City did you choose?
>
> To test I chose "America/Los_Angeles" from the menu, then rebooted, and...
>
> pbx ~ # tail -n1 /etc/localtime
> PST8PDT,M3.2.0,M11.1.0
>
> which is used as TZ_TIMEZONE.
>
> There are a handful of cities around the world that TZ_TIMEZONE=$(tail -n1
> /etc/localtime) is not a part of the timezone data, for those users
> TZ_TIMEZONE must be set in "/mnt/kd/rc.conf.d/user.conf" (for web interface
> users, Network tab -> User System Variables: {Edit User Variables}) or
> "/mnt/kd/rc.conf" (if "/mnt/kd/rc.conf.d" does not exist)
>
> Matt, please revert your changes:
>
> $ rm /oldroot/mnt/asturw/etc/rc
>
> and give it another try.
>
> Lonnie
>
>
> On Jan 21, 2010, at 3:11 AM, Matthew Nichols wrote:
>
> > Hi,
> >
> > I had an issue with the local time on my astlinux box reporting in UTC
> > after the upgrade. Previously it was in PST/PDT. I read from the
> > release notes that TZ_TIMEZONE is no longer required, but I had
> > problems getting the timezone right.
> >
> > In the end this is what I had to do:
> >
> > 1. edit /etc/rc and comment out the following:
> >
> > #uclibc style TZ support
> >  #if [ -z "$TZ_TIMEZONE" -a -f /etc/localtime ]; then
> >  #  TZ_TIMEZONE=$(tail -n1 /etc/localtime)
> >  #fi
> >
> > What was happening here is that the env variable $TZ_TIMEZONE didn't
> > exist after a reboot, and because /etc/localtime points to a valid
> > file, I was getting the following set:
> > pbx ~ # tail -n1 /etc/localtime
> > ??eGY?e턠g';?g?f?i?i?H?j???k?e l?mvG n??oV) p??q65ԐV?: X?X? Y??Z??[޵\??
> > ]??^d? _?y`Mޠa???b-??cgw?d/??EDm?E?? G-?Gӵ I
> >                                                  ro?s? tO?t?
> > ?v8??v??x??x?͠y???z???{?f?|~??}?H?~^s??*????????????????
> >
> >                                                PDTPSTPWTPPTpbx ~ #
> >
> > 2. What I did was to write the file /mnt/kd/TZ with the following
> content:
> >
> > PST8PDT,M3.2.0/2,M11.1.0/2
> >
> > and then /etc/rc will copy /mnt/kd/TZ to /tmp/etc/TZ as per:
> >
> > if [ -n "$TZ_TIMEZONE" ]; then
> >    echo "$TZ_TIMEZONE" > /tmp/etc/TZ
> >  elif [ -f /mnt/kd/TZ ]; then
> >    cp /mnt/kd/TZ /tmp/etc/TZ
> >  elif [ -f /stat/etc/TZ ]; then
> >    cp /stat/etc/TZ /tmp/etc/TZ
> >  fi
> >
> > 3. The last part was to put in symlink for /etc/TZ pointing to
> > /tmp/etc/TZ and I fixed the problem.
> >
> > Am I missing something here or is this problem with /etc/rc incorrect?
> > Having TZ_TIMEZONE in /mnt/kd/rc.local doesn't make any difference. Is
> > this a bug?
> >
> > Thanks
> >
> > Matt
> >
> >
> ------------------------------------------------------------------------------
> > Throughout its 18-year history, RSA Conference consistently attracts the
> > world's best and brightest in the field, creating opportunities for
> Conference
> > attendees to learn about information security's most important issues
> through
> > interactions with peers, luminaries and emerging and established
> companies.
> > http://p.sf.net/sfu/rsaconf-dev2dev
> > _______________________________________________
> > Astlinux-users mailing list
> > Astlinux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/astlinux-users
> >
> > Donations to support AstLinux are graciously accepted via PayPal to
> pay...@krisk.org.
>
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Astlinux-users mailing list
> Astlinux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> pay...@krisk.org.
>
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to