473,385 Members | 1,402 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,385 software developers and data experts.

Timezones

We are all, or at least most of us, are writing web applications that
can be accessed from any place on the planet. And yet Microsoft has
yet to write a datetime object that can deal with anything other than
local and UTC time. I have users in Toronto. I have users in Bangor.
Why can't I convert their dates and times from one place to another?

I can convert my local time to the Japanese calendar. I can convert it
to the Gregorian calendar. Why can't I convert Toronto time to Bangor
time? I have been reviewing new articles from as far back as 2002,
each answered with the same pitiful mumbling responses, each relying on
wacky javascript workarounds. You guys have all of the components for
a solution built into the OS. All we need is an interface. Where is
it?

Mark

Apr 3 '06 #1
3 1359
I agree with you 100%, I asked pretty much the same question about a month
ago. The reason I was given (I was told the JavaScript workarounds as well,
which I didn't like) was that sometimes the machines that supply the
localtimezones or other necessary information for the conversion are not
accurate. Whether or not this is true, there are improvements that I think
they could give. Here are some that I would like to see:

1. A Date method that allows you to enter 2 timezones (maybe the local and
remote) using an enumeration to more easily do the conversion.
2. Methods that do what you are asking for. Even if the servers aren't
guaranteed to have the correct times on them, it would still be nice to have
the methods.
3. Make a WebControl that has a property specifying what timezone to convert
the viewer's localtime to. The Control would generate the JavaScript to do
this so we didn't have to deal with it.

I will admit that I haven't spent much time concerning myself with time
accuracy (probably because none of the pages my boss has asked for needed
it), but I do know enough that with everything the web does, I think
Microsoft should be willing to sacrifice a little effort to make local and
remote time conversions more easily available to us.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Mark" <mb****@bongo.net> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
We are all, or at least most of us, are writing web applications that
can be accessed from any place on the planet. And yet Microsoft has
yet to write a datetime object that can deal with anything other than
local and UTC time. I have users in Toronto. I have users in Bangor.
Why can't I convert their dates and times from one place to another?

I can convert my local time to the Japanese calendar. I can convert it
to the Gregorian calendar. Why can't I convert Toronto time to Bangor
time? I have been reviewing new articles from as far back as 2002,
each answered with the same pitiful mumbling responses, each relying on
wacky javascript workarounds. You guys have all of the components for
a solution built into the OS. All we need is an interface. Where is
it?

Mark

Apr 4 '06 #2
The sad thing is that nobody from Microsoft actually reads these
groups. They'll only look if you pay them too.

Mark

Apr 5 '06 #3
That is not true.

Every day you can see responses from Microsoft-paid
personnel answering questions here...without charge to the askers.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark" <mb****@bongo.net> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
The sad thing is that nobody from Microsoft actually reads these
groups. They'll only look if you pay them too.

Mark

Apr 5 '06 #4

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

Similar topics

0
by: B. G. Mahesh | last post by:
hi I am using PHP 4.x and MySQL. The database has the list of countries, cities and timezones. I would like to convert the time from one zone to another zone . It is not that difficult to...
0
by: Symon R | last post by:
This is a bit of a weird one that I haven't yet been able to solve - I'm hoping someone out there can disprove my findings and tell me where I've gone wrong! I have designed a web service that...
13
by: Michael | last post by:
I would like to set the timezone of a thread to allow me to calculate the UTC time for data sourced from a number of time zones. Although this can be done in C and C++, I annot find how to do...
0
by: Robert Treat | last post by:
I am trying to figure out if there is a way to determine the timezones supported in postgresql from within the database. If you look at...
1
by: Flack | last post by:
Hey guys, I need to compare two times that the user selects. The user selects the hour, date, and timezone (which can be either NY, LN, or HK timezones). How can I compare two dates of...
5
by: Alex | last post by:
Hi My website is hosted in the States (EST), but the website itself is targeted for UK users (GMT). How can I offset the time so that the server reports it as GMT when my ASP.NET app needs to...
7
by: =?Utf-8?B?U3R1?= | last post by:
I have a ASP.NET Ajax app (using client library) calling ASP.NET Ajax-enabled web services. We are making use of the javascript proxies generated by ASP.NET Ajax. The problem we have is that the...
3
by: Daz | last post by:
Hello everyone. I am creating a JavaScript project which will allow users to see what time it is in other countries. I am wondering if there's any way to have the server work this out, without...
7
by: David T. Ashley | last post by:
In a web database (PHP), per user, I'd like to allow each user to specify their timezone (this would change how times are adjusted for display for that user). How do I enumerate all possible...
27
by: Sanjay | last post by:
Hi All, I am using pytz.common_timezones to populate the timezone combo box of some user registration form. But as it has so many timezones (around 400), it is a bit confusing to the users. Is...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.