[DNN Bug] a Bug in the time zone Editor

Source: Internet
Author: User
Tags dnn

Time zone editor control (adminLocalizationTimeZoneEditor. ascx) has a feature that checks the differences between the localized XML file (App_GlobalResourcesTimeZones.zh-CN.xml) that stores time zone information and the default XML file (App_GlobalResourcesTimeZones.xml) that stores time zone information. When the local file lacks the corresponding entries, it is required to be added. If there are redundant entries, it is automatically deleted. (Whether the entries are the same are identified by key values. The following XML contains the key values)

If I add an entry with the same key to the localization file, for example:
<Root>
<! --
Name = "Time Zone name"
Key = "offset relative to GMT (Greenwich Mean Time"
-->
<! --There is a duplicate key value-->
<TimezoneName= "(GMT) Greenwich Mean Time: Dublin, Edinburgh, London"Key= "0" />
<TimezoneName= "(GMT) Greenwich Mean Time: Dublin, Edinburgh, London"Key= "0" />
<TimezoneName= "(UTC-12:00) International Date change line"Key= "-720" />
<TimezoneName= "(UTC-11: 00) Midway Island and Malaysia islands"Key= "-660" />
<TimezoneName= "(UTC-10:00) Hawaii"Key= "-600" />
<! --Remaining omitted-->
</Root>


In any case, the system will prompt that there is a lack of entries and the redundant entries cannot be deleted, for example:


Solution: after reading the localized file to the dataset, define the key of the time zone information table as the primary key. If the definition is unsuccessful (with duplicate keys), an error is prompted and corresponding error handling is performed.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.