Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Daylight Savings #1125


User avatar
0
ninomartini created

Does the new TimeZone Management feature in v1.10 account for daylight savings?


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    ninomartini created

    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?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Actually, we did use moment timezone :). I wrote it in my message.

    I couldn't understand the confusion here :).

  • User Avatar
    0
    ninomartini created

    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
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    ninomartini created

    Thank you for the explanation.