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!
More>