Hi,
I'm trying to display a default timezone with some datetime fields. In trying to follow the steps from the documentation, I did the following:
isc.Time.setDefaultDisplayTimezone("-05:00");
I am trying to default the timezone to US East Coast time.
Then, the docs say:
"If a custom timezone is specified, it will be respected by all TimeDisplayFormats, and by the standard short DateDisplayFormats when formatting dates representing datetime type values. However native JavaScript Date formatters, including toLocaleString() will not respect the specified timezone. Developers specifying a custom timezone may therefore wish to modify the Date.setNormalDisplayFormat() to avoid using a native JS Date formatter function. "
So, when I use the following formatter, i would expect the timezone to display but it doesn't?
value.toUSShortDatetime();
What am I doing wrong?
I'm trying to display a default timezone with some datetime fields. In trying to follow the steps from the documentation, I did the following:
isc.Time.setDefaultDisplayTimezone("-05:00");
I am trying to default the timezone to US East Coast time.
Then, the docs say:
"If a custom timezone is specified, it will be respected by all TimeDisplayFormats, and by the standard short DateDisplayFormats when formatting dates representing datetime type values. However native JavaScript Date formatters, including toLocaleString() will not respect the specified timezone. Developers specifying a custom timezone may therefore wish to modify the Date.setNormalDisplayFormat() to avoid using a native JS Date formatter function. "
So, when I use the following formatter, i would expect the timezone to display but it doesn't?
value.toUSShortDatetime();
What am I doing wrong?
Comment