Hi,
I have a system that allows ppl to set up and join online meetings. Currently, I just ask the guy organizing a meeting to submit his timezone and whether its in DST or not on the date of the meeting, and just show that to everyone along with the date and time of the meeting.
What I would ideally like to do, is show everyone the date and time of every meeting in THEIR timezone. I think I've pretty much figured out how to use Javascript to find out the timezone offset for a user and show him the right time. What I cant yet figure out, is to determine, given a future date for a meeting, whether that future date will have DST adjustments or not for the user's timezone.
Is there any simple way to do this, apart from hardcoding all the DST rules for all the geographies in the world into my code?
Thanks!
Ram
2 3131
I forgot to mention, I use ASP, not ASP.NET
acoder 16,027
Recognized Expert Moderator MVP
When using the Date object in JavaScript, the local DST settings are already applied, so it shouldn't be a problem with the offset.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 property called "FutureDelivery" and
expects a DateTime value. The clients may be in different timezones...
|
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
timezones.
|
by: Drew |
last post by:
Is there a way to check if it is daylight savings or not via c#? I have
heard you can use System.Globalization?
Thanks - Drew
|
by: Martijn van Oosterhout |
last post by:
Hi,
The operating system I run (Linux) comes with many, many timezone files
for many different places in the world. For example:
$ TZ='Australia/Sydney' date
Fri Oct 8 06:15:31 EST 2004
$ TZ='Europe/Amsterdam' date
Thu Oct 7 22:15:38 CEST 2004
$ TZ='Africa/Bissau' date
|
by: dbee |
last post by:
So I can't figure out what exactly is going wrong here ... I'm using
php4.3
I'm accessing a server in Dublin from Seoul. I need to be able to
translate times into various timezones across the world. Simple
addition isn't the best because it doesn't take into account Daylight
Saving Times etc ....
What I'm doing is setting the TZ environment variable to my preferred
timezone and then calling a date function to get the hour ...
| |
by: luke_airig |
last post by:
I'm not sure if this is the right group for this posting. If not,
please accept my apologies.
I have been tasked with identifying and correcting application code
that will be affected by the new daylight saving time change that goes
into effect 2007/03/11. This is a .Net application with thousands of
lines of c#, javascript and html.
As I currently understand it, relevant patches will be supplied and
applied to the affected web...
|
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
Sanjay
|
by: robtyketto |
last post by:
I will try to explain this as clearly as possible, here goes:-
I'm working on an university assignment to design an electronic proof of delivery document for a firm which has customers over europe.
The solution does not need to be detailed, complicated or in-depth.
The customer will sign the proof of delivery on PDA equipment which will be set with the UK time.
I would like to add element(s) to the schema (or maybe even the XSL...
|
by: RobG |
last post by:
I was investigating a function to determine whether daylight saving
was being observed on a particular date (given the platform's regional
settings) and came across a suggestion at merlyn.com to test the time
zone offset on a variety of dates to see if it changes. Based on
that, I developed the following checkDST() function which, as far as I
can tell, should be sufficient.
It checks either the date passed to it or the current date with...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |