JasonO Posted February 6, 2008 Share Posted February 6, 2008 Hi All, I remember seeing Matt posting something that would go in configuration.php to change the default time offset or timezone. I tried the $timeoffset = 5; method (was something similar to that) but that didn't work. There was a new method that works in PHP 5 that also worked and was something along the lines of time_offset = 'GMT'; I've searched ages and had no luck in finding it in the current time offset threads. Anyone know it or got it? Would greatly appreciate it. Thanks, Jason 0 Quote Link to comment Share on other sites More sharing options...
Chrisw Posted February 7, 2008 Share Posted February 7, 2008 put this in your php file: putenv("TZ=GMT"); 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted February 7, 2008 Author Share Posted February 7, 2008 Bingo - Thanks a lot 0 Quote Link to comment Share on other sites More sharing options...
tuwebhost Posted November 16, 2008 Share Posted November 16, 2008 wow, this work for me too, I dont put the following: <?php $license = "**************"; $db_host = "localhost"; $db_username = "*********"; $db_password = "************"; $db_name = "************"; $cc_encryption_hash = "***************************************"; $templates_compiledir = "templates_c/"; //$timeoffset = "-8"; // THIS DO NOT WORK putenv("TZ=America/Monterrey"); ?> I set this to Monterrey Mexico Zone and work just fine. thanks a lot. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 17, 2008 Share Posted November 17, 2008 I believe this is the correct way to do it Put it in your configuration.php # For timezones go here http://www.php.net/manual/en/timezones.phpdate_default_timezone_set('Australia/Brisbane'); 0 Quote Link to comment Share on other sites More sharing options...
HoundHosting Posted November 21, 2008 Share Posted November 21, 2008 Thanks Sparky I followed your method and works a treat Terry 0 Quote Link to comment Share on other sites More sharing options...
darkkean Posted May 3, 2010 Share Posted May 3, 2010 Thanks Sparky. It worked for me. 0 Quote Link to comment Share on other sites More sharing options...
simplexwebs Posted May 3, 2010 Share Posted May 3, 2010 Thanks for this Sparky! 0 Quote Link to comment Share on other sites More sharing options...
dr.bs Posted May 6, 2010 Share Posted May 6, 2010 Hello Sparky, How can we change 24H format to 12H format? Regards, Bassam Ali 0 Quote Link to comment Share on other sites More sharing options...
Unihost Posted July 18, 2010 Share Posted July 18, 2010 Thanks Sparky, it works great... 0 Quote Link to comment Share on other sites More sharing options...
web-1234 Posted July 21, 2010 Share Posted July 21, 2010 Thanks Sparky, yours worked whereas putenv did not 0 Quote Link to comment Share on other sites More sharing options...
shoulders Posted December 31, 2011 Share Posted December 31, 2011 i use htaccess method. this will work for all software on my webserver 0 Quote Link to comment Share on other sites More sharing options...
Brainchild Labs Pty Ltd Posted August 27, 2012 Share Posted August 27, 2012 Great this works, thou im still wondering WHY THE F%^K there is no localisation options in whmcs v5.1..... LOL 0 Quote Link to comment Share on other sites More sharing options...
Brainchild Labs Pty Ltd Posted August 27, 2012 Share Posted August 27, 2012 Is there a way to make it show 12 hour time instead of 24 hour.... i hate militarytime.. thanks. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.