The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Changing Time of agoracart
Author Message
Reply with quote
Post 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.

View user's profile Send private message
Reply with quote
Post 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

Reply with quote
Post is there a solution for us east coasters? 
is there a solution for us east coasters with west coast servers?

View user's profile Send private message
Reply with quote
Post  
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


Display posts from previous:
Reply to topic 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