Announcement
Collapse
No announcement yet.
X
-
That's not something the built-in date and datetime formatters are intended to do, but you could add it via component-level formatters or overriding the default date and datetime formatters.
-
Hi, I want the actual timezone to display so it would look like this:
11/07/2011 20:12 EST
Is that possible?
Leave a comment:
-
With the simplest possible test code we seem to getting the right result:
This logs "11/07/2011 20:12" since it's 5:12 PM PST and GMT-5 is three hours ahead.Code:isc.Time.setDefaultDisplayTimezone("-05:00"); isc.logWarn(new Date().toUSShortDatetime());
Leave a comment:
-
Does that imply that what I tried should be working?
We are using version 8.1.8.27.11 and I was trying it on Firefox 7.
Leave a comment:
-
default timezone question
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?Tags: None
Leave a comment: