Does the new TimeZone Management feature in v1.10 account for daylight savings?
6 Answer(s)
-
0
Hi,
If you use UtcClockProvider, datetime values will be stored UTC in database. When displaying dates to client, we used moment timezone javascript library which takes care of daylight savings very well.
But, since we store datetime into database (not DateTimeOffset), for some particular cases it's impossible to know actual offset from UTC.
-
0
Thank you for your response. I am surprised Moment Timezone was not used for this feature. Was there a reason not to use it? How difficult would it be to switch to Moment Timezone or make Moment Timezone an option?
-
0
Hi,
Actually, we did use moment timezone :). I wrote it in my message.
I couldn't understand the confusion here :).
-
0
I am sorry for the disconnect and I will try better to explain by asking the question differently.
Instead of displaying the list of timezones as:
(UTC-07:00) Arizona (UTC-07:00) Chihuahua, La Paz, Mazatlán (UTC-07:00) Mountain Time (US & Canada)
Can we display them using the Moment abbreviated time zone names:
America/Chihuahua America/Denver America/La_Paz America/Phoenix
-
0
Hi,
Now I understand :). We are trying to stick with .Net as much as possible, because of that we store and show Windows timezone informations.
But we convert Windows Timezone to IANA (which you mentioned & moment timezone uses) in order to use it on the client side.
-
0
Thank you for the explanation.