Calendar Date format

18 views
Skip to first unread message

Alessandro Molina

unread,
May 7, 2014, 12:15:47 PM5/7/14
to toscawidge...@googlegroups.com
While fixing an issue with resources management in Calendar pickers in tw2.forms I realized that they use two different date formats.

As you can see for my commit:

The DatePicker was using US style dates, while the DateTime picker was using the international one. My proposted change moved both to the international format, to provide a coherent format that should be readable for every country.

Doing this I noticed that is wasn't possible to use the tw2.core validator for DateTime together with the DateTimePicker, because the validator expects the US format, while the picker provided the international one. After my change both the DateTimePicker and the DatePicker provide the international one, so it would probably be the case to also update the tw2.core validators to work on the international format by default.

This will change application behaviour for people that didn't provide a custom format, but it is probably the way to go because before:

- Date and DateTime had two different behaviours 
- it was broken when mixing DateTimePicker with DateTimeValidator
- It was meaningful only for US and caused %d/%m VS %m/%d confusion for europeans

What do you think?

Craig Small

unread,
May 10, 2014, 4:22:10 AM5/10/14
to toscawidge...@googlegroups.com
On Wed, May 07, 2014 at 06:15:47PM +0200, Alessandro Molina wrote:
> While fixing an issue with resources management in Calendar pickers in
> tw2.forms I realized that they use two different date formats.
[...]
> What do you think?
http://xkcd.com/1179/

- Craig
--
Craig Small (@smallsees) http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5

Paul Johnston

unread,
May 10, 2014, 4:59:17 PM5/10/14
to toscawidge...@googlegroups.com
Sounds sensible to me, I doubt many (or any) will notice the compatibility breakage.

Paul



--
You received this message because you are subscribed to the Google Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-dis...@googlegroups.com.
To post to this group, send email to toscawidge...@googlegroups.com.
Visit this group at http://groups.google.com/group/toscawidgets-discuss.
For more options, visit https://groups.google.com/d/optout.

Alessandro Molina

unread,
Jul 19, 2014, 5:43:50 PM7/19/14
to toscawidge...@googlegroups.com
Is there anyone in charge of tw2 release management? I think it might make sense to roll out tw2.core and tw2.forms releases as since the last release there have been 4-5 bug fixes including this one.

Bests,
Alessandro
Reply all
Reply to author
Forward
0 new messages