FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » new DateTimeZone and html encoding
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: new DateTimeZone and html encoding [message #172843 is a reply to message #172835] Fri, 04 March 2011 20:11 Go to previous messageGo to previous message
Bernd Schulz is currently offline  Bernd Schulz
Messages: 10
Registered: September 2010
Karma:
Junior Member
Am 04.03.2011 12:12, schrieb polilop:
>
>
> "Bernd Schulz" wrote in message
> news:4d70c4ef$0$6986$9b4e6d93(at)newsspool4(dot)arcor-online(dot)net...
>
> Am 04.03.2011 09:39, schrieb polilop:
>> when trying to do this :
>> $oldTZone= new DateTimeZone("Pacific Time (US & Canada");
>> or
>> $oldTZone=timezone_open("Pacific Time (US & Canada")
>> i get
>> Unknown or bad timezone (Pacific Time (US & Canada))
>>
>> it seems that it encodes the &. How can i disable it from doing so?
>>
> No.
> The supported timeszones are listed here:
> http://www.php.net/manual/en/timezones.php
>
> Yap, youre right. I'm using icalc to read ics exported from outlook.
> some versions of office give the timezones as listed,
> but office 2007 gives as i stated above so i thought they were allso legit.

I don´t jnow, what you´re doing, but i would do it like that:
$timeszone = array(.........all timezones in here);
if (!in_array($outlook_timezone, $timezones)
find_the_correct_timezoen_for_o2007();

etc....

Best
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: newbie question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 14:40:31 GMT 2024

Total time taken to generate the page: 0.04505 seconds