Location: A review of cardiac cellular electrophysiology models @ 1b3862589abf / dojo-presentation / js / dojo / dijit / tests / i18n / time.html

Author:
David Nickerson <david.nickerson@gmail.com>
Date:
2021-09-17 15:50:49+12:00
Desc:
tweak html formatting
Permanent Source URI:
https://models.fieldml.org/workspace/a1/rawfile/1b3862589abf79ae9119ee0b5e99a8b785d762e1/dojo-presentation/js/dojo/dijit/tests/i18n/time.html

Dijit TextBox Globalization Test for Time

Press the following button to start all test after this page is loaded.

Start Test

Before start this test, make sure the dojo/cldr/nls contains the data for "zh-cn", "fr-fr", "ja-jp", "ru-ru", "hi-in", "en-us" and "ar-eg". If not, convert these CLDR data and put them there.

Issues & Comments

Issue #1 Fixed

Currently Dojo do not support parsing for most "long" and "full" time format which have a timezone mark in it.

Issue #2 Fixed: added a "localeDigit" to the options

Strictly speaking, the data conversion must support non-European number characters in some locales like Arabic and Hindi. For example, ICU formats a number data into Indic number characters by default in the Arabic locale. However, currently Dojo does not support this feature (Dojo uses the default number conversion of the browser).

Issue #3 Fixed

This defect only occurs on the "zh-cn" locale. Dojo accepts "下午"(pm) in the textbox, but it automatically changes it to "上午"(am) after the focus changed. The date value of the textbox is also changed.

The root cause of this issue is that the parser method's code assumes am/pm symbol always appears after the hour value. But this is not true, for example, the pattern for "zh-cn" puts am/pm field before all the other fields.