Page 1 of 1

Security Timestamp

Posted: Sun Aug 07, 2011 6:31 pm
by hunt342
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

Re: Security Timestamp

Posted: Tue Aug 09, 2011 2:59 am
by pickle_jimmy
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

Re: Security Timestamp

Posted: Tue Aug 09, 2011 1:19 pm
by danielf
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.

Re: Security Timestamp

Posted: Tue Aug 09, 2011 10:49 pm
by zazzium
I had the same problem.
Thanks danielf for the solution!!

Re: Security Timestamp

Posted: Wed Aug 10, 2011 5:15 am
by admin
.