Exception with date()
9 posts
• Page 1 of 1
Exception with date()
Hi,
I've just downloaded the new may version and get an exception while using date() function inside a pure dll.
The message is:
"The type initializer for 'PHP.Library.PhpTimeZone' threw an exception."
and the InnerException message is:
"The time zone ID 'Bahia Standard Time' was not found on the local computer."
Can you help me?
Thanks
I've just downloaded the new may version and get an exception while using date() function inside a pure dll.
The message is:
"The type initializer for 'PHP.Library.PhpTimeZone' threw an exception."
and the InnerException message is:
"The time zone ID 'Bahia Standard Time' was not found on the local computer."
Can you help me?
Thanks
- strfrank
- Posts: 20
- Joined: May 30th, 2012, 5:05 pm
Re: Exception with date()
Hi,
what version of Windows do you have?
what version of Windows do you have?
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Exception with date()
Hi,
I worked on this on a Windows 7 64 bit virtual machine (italian locale), with the previous version of phalanger I didn't have the problem,
Thanks
I worked on this on a Windows 7 64 bit virtual machine (italian locale), with the previous version of phalanger I didn't have the problem,
Thanks
- strfrank
- Posts: 20
- Joined: May 30th, 2012, 5:05 pm
Re: Exception with date()
'Bahia Standard Time' is time zone which is available thru Windows Update (http://support.microsoft.com/kb/2633952/). Phalanger expects Windows are up to date and contains all the time zones.
For now, you should update your Windows.
We will fix Phalanger so it will handle missing time zones without crashing.
For now, you should update your Windows.
We will fix Phalanger so it will handle missing time zones without crashing.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Exception with date()
Many thanks, I applied KB2633952 and now it works perfectly!
I agree about making it work even with missing time zones as I usually see very few fully updated machines (starting from mine )
I agree about making it work even with missing time zones as I usually see very few fully updated machines (starting from mine )
- strfrank
- Posts: 20
- Joined: May 30th, 2012, 5:05 pm
Re: Exception with date()
Hi,
Does the timezone rely on .net culture ? So I have to install optional language updates to support other timezones ?
Does the timezone rely on .net culture ? So I have to install optional language updates to support other timezones ?
- MaitreDede
- Posts: 29
- Joined: May 22nd, 2012, 7:17 am
Re: Exception with date()
No, Phalanger uses TimeZone database from Windows, which should be the same on all Windows. There are just some time zones that were introduced after a Windows Update.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Exception with date()
I have an other case :
Source code is
from PhpLiteAdmin project.
- Code: Select all
Strict Standards: date_default_timezone_get(): Using system time zone settings which may be inaccurate ('Paris, Madrid' zone selected) in D:\Travail\Phalanger.Dede\Prado\phpliteadmin\phpliteadmin.php on line 106, column 1.
Notice: date_default_timezone_set(): Unknown time zone 'Romance Standard Time' in D:\Travail\Phalanger.Dede\Prado\phpliteadmin\phpliteadmin.php on line 106, column 1.
Source code is
- Code: Select all
date_default_timezone_set(date_default_timezone_get());
from PhpLiteAdmin project.
- MaitreDede
- Posts: 29
- Joined: May 22nd, 2012, 7:17 am
Re: Exception with date()
I see, default timezone has wrong ID, if not set explicitly in config.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 32 guests