#1174 ERROR: Cannot init current timezone

akhil Wed 11 Aug 2010

Hi,

I seem to be getting timezone error. I looked at the earlier references. Wasn't this issue suppose to have been taken care off. Am I missing something?

I use ubuntu 10.04 64-bit

Thank you Akhil

Here is the output:

akhil@akhil-laptop:~/Downloads/fantom$ fan -version Fantom Launcher Copyright (c) 2006-2010, Brian Frank and Andy Frank Licensed under the Academic Free License version 3.0

Java Runtime:

java.version:    1.6.0_20
java.vm.name:    Java HotSpot(TM) 64-Bit Server VM
java.vm.vendor:  Sun Microsystems Inc.
java.vm.version: 16.3-b01
java.home:       /usr/lib/jvm/java-6-sun-1.6.0.20/jre

ERROR: Cannot init current timezone sys::ParseErr: TimeZone not found: Asia/Kolkata at fan.sys.ParseErr.<init>(ParseErr.java:53) at fan.sys.ParseErr.make(ParseErr.java:39) at fan.sys.ParseErr.make(ParseErr.java:36) at fan.sys.TimeZone.fromStr(TimeZone.java:84) at fan.sys.TimeZone.fromStr(TimeZone.java:50) at fan.sys.TimeZone.<clinit>(TimeZone.java:619) at fan.sys.DateTime.<clinit>(DateTime.java:759) at fan.sys.Sys.initBootDateTime(Sys.java:496) at fan.sys.Sys.<clinit>(Sys.java:203) at fan.sys.Env.<clinit>(Env.java:20) at fanx.tools.Fan.version(Fan.java:168) at fanx.tools.Fan.run(Fan.java:219) at fanx.tools.Fan.main(Fan.java:274) fan.platform: linux-x86_64 fan.version: 1.0.54 fan.env: sys::BootEnv fan.home: /home/akhil/Downloads/fantom/fantom-1.0.54

tcolar Wed 11 Aug 2010

I get that quite often after fresh install.

Easiest fix for me is to edit etc/sys/config.props and (un)comment / edit:

timezone=New_York

brian Wed 11 Aug 2010

Asia/Kolkata isn't a timezone as defined by the tzinfo database. I see there is a comment under Asia/Calcutta for it, but no actual definition. So you will need to manually configure via etc/sys/config.props.

Wasn't this issue suppose to have been taken care off. Am I missing something?

Is it actually preventing the Fan VM from starting? Or just dumping an error?

Things should still work, you just won't have the right timezone when working with DateTime APIs.

akhil Thu 12 Aug 2010

Hi,

Changing from Kolkata to Calcutta in etc/sys/config.props did the job.

It was just dumping an error, never prevented fan vm working.

Thanks for the help

Login or Signup to reply.