Welcome Guest, please login or register.
Username:
Password:

News: Welcome to Hostpapa Forums!
Pages: [1]   Go Down
Topic Tools  
Read
January 03, 2012, 03:47:07 PM
pordster
Newbie
*
Posts: 2



Hi,

I have filed a service ticket though from what I read I could be waiting a while for a response from that so was wondering if anyone here can help. I am trying to use the strtotime() command in PHP but it requires the timezone to be set. A simple php.ini modification would solve this but we can't access that so is there any other workaround?
Thanks
Logged
 

Read
January 04, 2012, 07:09:34 AM
wspeeckaert
Jr. Member

**
Posts: 94



Try

date_default_timezone_set('America/Montreal');

At the start of the program

change 'America/Montreal' to the desired locale
Logged
 

Read
January 04, 2012, 09:49:59 AM
pordster
Newbie
*
Posts: 2



Perfect! Thank you very much.
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net