freelanceprogrammers.org Forum Index » PHP
Re: Client Time Zone.
Joined: 18 May 2005
Posts: 18
Re: Client Time Zone.
----- Original Message -----
From: "Khalil, Fahad" <>
To: <php-objects@yahoogroups.com>
Cc: <uet-cs@yahoogroups.com>
Sent: Thursday, July 21, 2005 10:30 AM
Subject: [php-objects] Client Time Zone.
> I wanna know can I read client`s time zone via some HTTP request
headers?
> Coz I think server in reply sends its local time plus time zone in
response
> headers (before sending data).
I don`t think so, when a client makes an http request the following
headers are generally sent:
Host, User-Agent, Accept, Accept-Language, Accept-Encoding,
Accept-Charset, Connection, Referer. Nothing about the time there. You
could get their IP address block and make a guess as to where they are,
but that`s not going to be very accurate.
> Coz I think server in reply sends its local time plus time zone in
response
> headers (before sending data).
If it`s Apache, you can get either directives:
DATE_GMT The current date in Greenwich Mean Time (GMT).
DATE_LOCAL The current date in the local time zone.
and manipulate those values through php if you wish. Whether or not you
can change this at the server depends on your server set-up, ask your
host and you may be able to telnet in to the ../../share/zoneinfo
directory to do that.
If you think you`re having header problems, get Firefox browser and
install the LiveHTTPheaders extension, or even better, the "Tamper Data"
extension which allows you to see headers both ways and even modify them
before sent to test your scripts.
hope that helps!
cheers,
Mark
Joined: 12 Feb 2005
Posts: 10
Re: Client Time Zone.
Well you could write a JavaScript routine to populate the time zone offset
into a hidden form field.
see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht
ml/js56jsmthgettimezone.asp
for a write-up on the gettimezoneoffset method.
-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]On
Behalf Of Mark Groen
Sent: Thursday, July 21, 2005 9:17 PM
To: php-objects@yahoogroups.com
Subject: Re: [php-objects] Client Time Zone.
----- Original Message -----
From: "Khalil, Fahad" <>
To: <php-objects@yahoogroups.com>
Cc: <uet-cs@yahoogroups.com>
Sent: Thursday, July 21, 2005 10:30 AM
Subject: [php-objects] Client Time Zone.
> I wanna know can I read client`s time zone via some HTTP request
headers?
> Coz I think server in reply sends its local time plus time zone in
response
> headers (before sending data).
I don`t think so, when a client makes an http request the following
headers are generally sent:
Host, User-Agent, Accept, Accept-Language, Accept-Encoding,
Accept-Charset, Connection, Referer. Nothing about the time there. You
could get their IP address block and make a guess as to where they are,
but that`s not going to be very accurate.
> Coz I think server in reply sends its local time plus time zone in
response
> headers (before sending data).
If it`s Apache, you can get either directives:
DATE_GMT The current date in Greenwich Mean Time (GMT).
DATE_LOCAL The current date in the local time zone.
and manipulate those values through php if you wish. Whether or not you
can change this at the server depends on your server set-up, ask your
host and you may be able to telnet in to the ../../share/zoneinfo
directory to do that.
If you think you`re having header problems, get Firefox browser and
install the LiveHTTPheaders extension, or even better, the "Tamper Data"
extension which allows you to see headers both ways and even modify them
before sent to test your scripts.
hope that helps!
cheers,
Mark
PHP Data object relational mapping generator - http://www.meta-language.net/
----------------------------------------------------------------------------
----
YAHOO! GROUPS LINKS
a.. Visit your group "php-objects" on the web.
b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
----------------------------------------------------------------------------
----
[Non-text portions of this message have been removed]
All times are GMT
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
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
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







