|
|
#1 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Spain
Hosted on pass6
133 posts
Gave thanks: 0
Thanked 0 times
|
A question for foreign users
Hello, here I am again with another question for not USA users of surpass (because I suppose they have the same "problem" than me):
How do you manage with the hour in your web applications? I mean, the hour of the server is GMT -6 (isn't it?) and the hour of Spain is GMT +1, so what do you do with hour in your applications, data bases...? Do you control it directly or is there an option to change the GMT hour for your accounts? Well, that's all for the moment. P.S.: I'm sure I'm going to order with you (I love your hosting and community) but now I'm hosting in other company and have a few days of hosting period still. In a few days I will be a SURPASSERRRRRRRRRRRRRR :bananadan :surpass: :bananadan
__________________
domain: www.seicom.es server: pass6 Regards from Spain (MAYOR WINTERS -- MAJOR WINTERS -- BAND OF BROTHERS) Last edited by mayorwinters; May 6th, 2004 at 10:24 PM.. |
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Jan 2004
Lives in Clinton, Massachusetts
Hosted on Serenity x.x.40.51
994 posts
Gave thanks: 0
Thanked 0 times
|
I'm not a foreign user, I'm actually in the same time zone as the datacenter, but here is a possible answer to your problem.
Create a timestamp, using PHP's mktime(). Make sure that for the hour parameter, you add 6 hours to make up for the difference in time zones. (The datacenter is -5 GMT.) Note: The times show as the output are from when I ran the script. PHP Code:
|
|
|
|
|
|
#3 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
SmartGuy gave you a technical version, I am going to give you a real world version.
Any script that tracks times should track it by the servers time. It should then adjust the outputted display to compensate for the time difference. Most major scripts already do this. The only other possibility would be to have the script make adjustments to the time when it was posted, but since this internet thing is worldwide, it is best to let the end user chose the timezone they want to see (via the scripts settings).
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Spain
Hosted on pass6
133 posts
Gave thanks: 0
Thanked 0 times
|
thank you guys!!!!!!!
__________________
domain: www.seicom.es server: pass6 Regards from Spain (MAYOR WINTERS -- MAJOR WINTERS -- BAND OF BROTHERS) |
|
|
|
|
|
#6 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Spain
Hosted on pass6
133 posts
Gave thanks: 0
Thanked 0 times
|
Here I am again. I don't have an account because maybe I will register a reseller plan. My question is: could I change the hour in whm to all my users to spanish time zone?
I know with the help that gave me SmartGuy (timestamp) everything will go ok but my future users shouldn't know what is php and this solutions won't be ok for them. That's all. I hear you :suri:
__________________
domain: www.seicom.es server: pass6 Regards from Spain (MAYOR WINTERS -- MAJOR WINTERS -- BAND OF BROTHERS) |
|
|
|
|
|
#7 (permalink) | |
|
ubuntu Fan
Super #1
Joined in Nov 2003
Lives in Calgary Alberta Canada
2,724 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
__________________
"A lot of people are waiting for Martin Luther King or Mahatma Gandhi to come back -- but they are gone. We are it. It is up to us. It is up to you." — Marian Wright Edelman |
|
|
|
|
|
|
#8 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Spain
Hosted on pass6
133 posts
Gave thanks: 0
Thanked 0 times
|
So all emails sent from and recieved to the accounts of this reseller plan will appear with hour - 5 GMT?
__________________
domain: www.seicom.es server: pass6 Regards from Spain (MAYOR WINTERS -- MAJOR WINTERS -- BAND OF BROTHERS) |
|
|
|
|
|
#9 (permalink) | |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,387 posts
Gave thanks: 28
Thanked 94 times
|
Quote:
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|