473,394 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

using time zones in ASP

I have an ASP app that works as an online time clock. The
user logs in and clocks in and out and the app records the
time punches in an access 2000 database. My problem is
this. I just setup a user in the central time zone and
they have reported that when they use the online time
clock, it saves the time as eastern time instead of
central. How can I make the software know which time zone
the user is in?
Jul 19 '05 #1
3 2941
It can't know unless you ask the user to specify his timezone of choice and
then record it somewhere, like a database. I'm pretty sure that timezone
info is not sent in request headers from the browser or anything.

Ray at work

"connieharper" <an*******@discussions.microsoft.com> wrote in message
news:9f****************************@phx.gbl...
I have an ASP app that works as an online time clock. The
user logs in and clocks in and out and the app records the
time punches in an access 2000 database. My problem is
this. I just setup a user in the central time zone and
they have reported that when they use the online time
clock, it saves the time as eastern time instead of
central. How can I make the software know which time zone
the user is in?

Jul 19 '05 #2
Ray at <%=sLocation%> [MVP] wrote on 20 aug 2004 in
microsoft.public.inetserver.asp.general:
It can't know unless you ask the user to specify his timezone of
choice and then record it somewhere, like a database. I'm pretty sure
that timezone info is not sent in request headers from the browser or
anything.


As I wrote here:

<http://groups.google.com/
groups?selm=Xns94BBDA2B9E6F6eejj99%40194.109.133.2 9>,

it is quite possible to determine the server's and the client's UTC offset
and so it is possible to find the server/client offset and so to
synchronize a clientside javascript clock to the exact server's time.

However this is only usefull if the server has an exact [= atomclock
synchronized] time.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3
-----Original Message-----
It can't know unless you ask the user to specify his timezone of choice andthen record it somewhere, like a database. I'm pretty sure that timezoneinfo is not sent in request headers from the browser or anything.
Ray at work

"connieharper" <an*******@discussions.microsoft.com> wrote in messagenews:9f****************************@phx.gbl...
I have an ASP app that works as an online time clock. The user logs in and clocks in and out and the app records the time punches in an access 2000 database. My problem is
this. I just setup a user in the central time zone and
they have reported that when they use the online time
clock, it saves the time as eastern time instead of
central. How can I make the software know which time

zone

So what is the default time zone it uses? Whatever time
zone the server my website resides on? It doesn't get the
time from the client's computer?

If I put their time zone in the database that resides on
my website, how do I use it to change the time zone to my
client's whenever they save a record?

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Mike A | last post by:
Hi, I'm hoping someone can help me with this. I have a URL for which I'd like to limit access to by time. For example,say I have a URL that I don't want accessable on Monday mornings between...
6
by: David Graham | last post by:
Hi I have asked this question in alt.php as the time() function as used in setcookie belongs to php - or does it belong equally in the javascript camp - bit confused about that. Anyway, can anyone...
11
by: lduperval | last post by:
Hi, I`m trying to do date calculations in three types of time zones: local, GMT and specified. The issue I am facing is that I need to be able to specify a date in the proper time zone, and I`m...
1
by: heirou | last post by:
I'm a novice in this subject....I've made a database that requires a time conversion. For example, if local time is 1200, determine the time in Korea. I use two fields: a date field, and a time...
6
by: Rebecca Smith | last post by:
Today’s question involves two time text boxes each set to a different time zone. Initially txtCurrentTime will be set to Pacific Time or system time. This will change with system time as we travel...
0
by: Sabotage | last post by:
Hi all, I am looking to download time zones list for my multilingual software. I found time zones list in english here:...
1
by: gnupun | last post by:
Hi, I'm trying to compute current time for mountain standard time with daylight savings (MDT);and without DST (MST), eg: Phoenix, AZ. If I use the PHP timezone "US/Mountain", it returns MDT...
3
by: meettapan | last post by:
I want to create the log file as below:- 2007/03/09 19:12:08 : ~extasc_cdr_20061230.csv.vcdr 2007/03/09 19:23:02 : ~extasc_cdr_20061230.csv.vcdr 2007/03/09 19:42:13 :...
10
by: WebCM | last post by:
There is a function: http://paste.ubuntu.com/21865 It needs GMT date in YYYY-MM-DD HH:MM:SS format - in SQL: datetime. If date is the same as today, the function returns "Today". There is one...
0
amitpatel66
by: amitpatel66 | last post by:
Hi All, Find below some useful information about Time Zone Conversion in oracle. Hope this would be helpful for many of them since all the real time projects that we work in follow different time...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.