date - Why do some applications ask the user if they follow daylight saving time? -
After allowing the user to select the time zone, many applications ask if DST adjustments should be done. Looking at past and present information on DST for each timezone, why do the applications ask?
They should not do that generally people who do this are not using the TJ database And have made invalid assumptions about how time zones work.
This is usually associated with a time zone selection dropdown which lists only the numerical offset, such as:
Instead, it should be considered as a timezone:
By asking first for countries, tz for just a handful for any country Can reduce the time zone choice from the database. And since many countries have only one time zone, sometimes the user will have to choose their country.
BTW - The above graphics are from Plurlastic Course, of which I am the author, I cover this issue and many other similar common mistakes.
You can also read in the section entitled "Timezone! = Offset".
One common exception is this rule - if Microsoft Windows is DST in the selected time zone, then Microsoft offers a user the option to disable it:
This is sometimes necessary because there are such places in the world, which in Windows presented options Are not fully displayed. Microsoft does not use the tees database for this, but they have their time zone they maintain. For example, if you live, the only valid selection in Windows is Eastern Time with DST disabled. Compare with the tees database, which is defined as one area especially This can cause a problem for .NET developers, such as "America / Atikokan" .
TimeZoneInfo. Local.Id will return
"Standard Time" back , whether the DST flag is on or off in the control panel. However, if it is disabled, all adjustment rules will be stripped. In other words,
timezoneinfo.local! = TimezoneInfoFundbascismID (TimezoneInfo.local.id) . If the application only stores the ID, then there is no way to recover the time zone like it's ATICOKON.
Comments
Post a Comment