473,563 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1368
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********@hotm ail.com
http://www.nathansokalski.com/

"Mark" <mb****@bongo.n et> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.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.n et> wrote in message
news:11******** **************@ z34g2000cwc.goo glegroups.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
1333
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 convert but I was wondering if the language itself supports the conversion which I would prefer using. Any other tips is appreciated
0
5113
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 accepts messages from .NET clients. The web method call includes an object as one of it's parameters - this reflected object has been given a...
13
7013
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 this is C#. Can this be done ? If so how ? Please note setting the culture does not impact the timezone and a culture (like en-US) may have many...
0
1143
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 http://www.postgresql.org/docs/7.4/static/datetime-keywords.html it notes that time zone information is system dependent, (I interpret to mean that anything I find in /usr/share/zoneinfo on linux should be...
1
2128
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 different timezones? For example: Date1 = 11:30, 4/18/06, NY Date2 = 16:30, 4/18/06, LN These times should be considered equal (since of course LN time...
5
7799
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 find out the current time? .. Can I do this in web.config? If so how exactly?
7
4259
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 UTC dates sent by the browser are being adjusted for timezones by the server, but we do not want dates adjusted for timezones. For example, the...
3
3078
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 having to update a database constantly with the times and dates that certain countries set their clocks back or forward. Can this be done, or do I...
7
3848
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 timezones from a PHP script or compiled 'C' program? Given a specific timezone, how do I get the time adjustment from UTC (which can vary, based on...
27
5293
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 there a smaller and more practical set? If not, some suggestions on how to handle the registration form effectively would help me a lot. thanks...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.