Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Security Timestamp

Locked
hunt342
Posts: 2
Joined: Sat Jul 30, 2011 7:08 am

Security Timestamp

Unread post 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
pickle_jimmy
Posts: 38
Joined: Mon Jul 25, 2011 4:00 am

Re: Security Timestamp

Unread post 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
danielf
Posts: 44
Joined: Tue Jul 26, 2011 2:48 pm

Re: Security Timestamp

Unread post 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.
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Re: Security Timestamp

Unread post by zazzium »

I had the same problem.
Thanks danielf for the solution!!
admin
Site Admin
Posts: 2788
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 4 times

Re: Security Timestamp

Unread post by admin »

.
Locked