Jump to content

Time Offset, php 5 method


JasonO

Recommended Posts

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

Link to comment
Share on other sites

  • 9 months later...

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.

Link to comment
Share on other sites

  • 1 year later...
  • 2 months later...
  • 1 year later...
  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated