Time Conversions

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am using a US server, and my server times are USA times.

Is there a way convert American times to British?


My customer orders an item, and I show an Order History, but it says
he ordered it at 3.00 am because it was 3.00 am in Illinois. I need it
to show the time in the UK, since the customer is in the UK, normally.

Of course, an extension to this is to read headers and then show the
customer's time according to his country location. I don't know how
accurate that method is, and how reliable headers are (eg if ISP
logons go through the USA as AOL used to do.)

I see something like this:

custLand = getCountry(Header)

Re: Time Conversions

Trevor said...

Quoted text here. Click to load it

set the server time to GMT or change the date function in the script
to GMT or show both the server time and GMT time on the order.
Quoted text here. Click to load it

there is no reliable way to determine what the country of origin is

23/September/2003 03:57:46 pm

Re: Time Conversions

brucie wrote:
Quoted text here. Click to load it

Gets messy with different British Summer Time and other implementations
of daylight saving times beginning and ending at different times.

Ste W

Re: Time Conversions

SteW said...

Quoted text here. Click to load it

show the time GMT, it'll give everyone a common frame of reference to
workout their time of order from if for some reason they want to know

23/September/2003 08:18:47 pm

Re: Time Conversions

On Tue, 23 Sep 2003 10:07:48 +0000 (UTC), SteW wrote:


Quoted text here. Click to load it

Last time I looked GMT was independent of daylight savings :-)


Dave Saville

NB switch saville for nospam in address

Re: Time Conversions

Trevor wrote:

Quoted text here. Click to load it

Why try to find out where they live from their HTTP headers? Presumably
you know where the customer lives because you have their billing address.

Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?id=132

Site Timeline