Hi,
I'm new to nuBuilder and I'm hoping one of you guys can help me out with this problem.
I have a couple of tables that have the 3 security stamps and they are getting updated properly whenever I add or update a record.
My problem is that the timestamps are in a different time zone (GMT+09:30) Central Time - Adelaide.
I was wondering if there was any way to change this default time stamp to something else.
Thanks,
Jack
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
Security Timestamp
-
- Posts: 38
- Joined: Mon Jul 25, 2011 4:00 am
Re: Security Timestamp
Hi Jack,
first place to look is in the PHP.ini file
look for date.timezone, and set it to match your timezone (remove the semicolon (;) if there is one) - you can also add a lat/long
eg
date.timezone = "Asia/Colombo"
date.default_latitude = 6.9319444
date.default_longitude = 79.8477778
Cheers
Pickle Jimmy
first place to look is in the PHP.ini file
look for date.timezone, and set it to match your timezone (remove the semicolon (;) if there is one) - you can also add a lat/long
eg
date.timezone = "Asia/Colombo"
date.default_latitude = 6.9319444
date.default_longitude = 79.8477778
Cheers
Pickle Jimmy
-
- Posts: 44
- Joined: Tue Jul 26, 2011 2:48 pm
Re: Security Timestamp
I successfully changed the timezone in common.php in the productionnu2 folder:
function setClientTimeZone()
{
global $setup;
if ($setup->set_timezone)
date_default_timezone_set($setup->set_timezone);
else
date_default_timezone_set("Australia/Adelaide");
} // func
// END - 2009/06/02 - Michael
Change the default timezone from Adelaide to your location and you should be ready to go.
function setClientTimeZone()
{
global $setup;
if ($setup->set_timezone)
date_default_timezone_set($setup->set_timezone);
else
date_default_timezone_set("Australia/Adelaide");
} // func
// END - 2009/06/02 - Michael
Change the default timezone from Adelaide to your location and you should be ready to go.
-
- Posts: 84
- Joined: Mon Jul 04, 2011 12:52 am