[Dnn bug] a bug in the time zone Editor

Source: Internet
Author: User
Tags timezones dnn
Time zone editor control (admin \ localization \ timezoneeditor. ascx) has this function, which can check the localized XML file (app_globalresources \ timezones. zh-CN.xml) with the default XML file that stores time zone information (app_globalresources \ timezones. XML. 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 -->
< Timezone Name = "(GMT) Greenwich Mean Time: Dublin, Edinburgh, London" Key = "0"   />
< Timezone Name = "(GMT) Greenwich Mean Time: Dublin, Edinburgh, London" Key = "0"   />
< Timezone Name = "(UTC-12:00) International Date change line" Key = "-720"   />
< Timezone Name = "(UTC-11: 00) Midway Island and Malaysia islands" Key = "-660"   />
< Timezone Name = "(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.

The bug in this time zone Editor may not be a bug if you don't have to worry about it. It is a requirement for dnn to keep improving!


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.