Time Conversions

T

Trevor

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

Is there a way convert American times to British?

Example
=======

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)
convertTime(custLand)
 
B

brucie

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.

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.
Of course, an extension to this is to read headers and then show the
customer's time according to his country location.

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

Toby A Inkster

Trevor said:
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.

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.
 
S

SteW

brucie said:
In post <[email protected]>
Trevor said...




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.

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

Ste W
 
B

brucie

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

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
it.
 
D

Dave Saville

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

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

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


Regards

Dave Saville

NB switch saville for nospam in address
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top