flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists
Date Tue, 18 Apr 2017 03:31:40 GMT
HI,

> What is the scenario where everybody will need this code?

If they want to use a date formatter and not have dates displayed as “YYYY-MM-DD”.

Before these changes dates would be formatted as US style dates by default and if you added
a different date format bead it would still incorrectly display in US date format. Middle
endian / US style dates should not be the default as they are only used by about 5-10% of
the world’s population. If you prefer I can change the default to "DD/MM/YYYY” rather
than YYYY-MM-DD format  (ISO 8601).

Basically code like this would still display US style dates.
<js:DateField>
    <js:beads>
        <accessories:DateFormatDDMMYYYYBead />
    </js:beads>
</js:DateField>

Reason being that it was just finding the first IFormatBead which was defined in the CSS,
any other IFormatBead bead the user added would be ignored.

Thanks,
Justin
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message