 |
Page 1 of 1
|
Author |
Message |
dubya01
Newbie
Joined: 08 Jan 2005
Posts: 8
|
 Changing Time of agoracart
Hi, I would like to make agoracart's time into one that is in the Pacific standard time (PST - GMT 0200). I have looked all over the place for the config files, but can't find them. Would I change the time in CPanel? Or could I go in a file, and do something like time = time() - 3; ?
Thanks in advance.
|
Fri Feb 11, 05 6:43 pm |
|
 |
Dan
Guest
|
 RE: Changing Time of agoracart
hell-o
i haven't personally tested this. credit goes to Mike Hart.
Quote:For those who have a cart aimed at the UK, but have their server located in
the US, here is a quick n'dirty improvement to the time that Agora reports
on the emails and in the log.
Have a look at the agora.cgi file, and find the subroutine
sub get_date
Within it, you will find the line...
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
Change this to...
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time);
...and the times on the invoices will change to GMT times - OK for us in the
UK!
It's not a perfect solution, but it's right for half the year, and if you
add "GMT" to your email page, I doubt that anyone would complain.
Hope that this helps someone as they trawl the archives (as I did!), and
maybe someone can offer an improvement to (even manually) compensate for
daylight saving??
another thing would be to contact your hosting to find the solution to set your time for your domain.
regards,
dan
|
Sat Feb 12, 05 7:06 am |
|
 |
jamjon
Newbie - One Blade
Joined: 01 Feb 2005
Posts: 12
|
 is there a solution for us east coasters?
is there a solution for us east coasters with west coast servers?
|
Sun Mar 13, 05 12:26 pm |
|
 |
milehightrader
Guest
|
Here is a repost from the agora2 form of a time adjustment hack
Quote:NOTE: The 10800 is the amount of seconds in 3 hours
agora2 #13175
----- Original Message -----
From: Larry Wagar
To: agora2@yahoogroups.com
Sent: Sunday, November 16, 2003 02:54
Subject: Re: [AgoraCart] Agora clock question
I am using '4.0K-3 Standard' and it looks like this would work...
agora.cgi
Change this:
$time = time;
To this:
$time = time + 10800 # add 3 hours
sub get_date_engine
Change this:
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
To this:
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($time);
I have not tested it but it looks right from what I can tell...
Larry
|
Mon Mar 14, 05 7:30 am |
|
 |
|
The time now is Thu May 08, 25 9:07 am | All times are GMT - 7 Hours
|
Page 1 of 1
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|