DatePicker now starting with Monday, used to be Sunday

1,033 views
Skip to first unread message

Dan

unread,
Jan 5, 2011, 10:51:00 AM1/5/11
to Google Web Toolkit
My DatePicker in my program used to start with Sunday, but since some
time recently--I don't know when--it has been starting with Monday.

I've done nothing in this area.

What do I do to get it back to starting with Sunday?

Ben Imp

unread,
Jan 5, 2011, 10:57:58 AM1/5/11
to Google Web Toolkit
I experienced this as well. I noticed it right after I upgraded to
GWT 2.1, so I assume that must have done it. I've ignored it so far,
as no one in my organization seems to care, but I must admit, I am
curious as to the cause.

-Ben

macagain

unread,
Jan 5, 2011, 12:11:06 PM1/5/11
to Google Web Toolkit
Yes, same here. But what's even more puzzling is that if you run
showcase (as in compile it from the dist. samples directory), the
datepicker there starts on Sunday!

Been digging all over, but can't seem to figure out what/where the
setting is.

John LaBanca

unread,
Jan 5, 2011, 12:14:46 PM1/5/11
to google-we...@googlegroups.com, John Tamplin
Are you using the default locale?  I'm pretty sure that the start of week info comes from the CDLR locale data, which we update periodically from some open source resource.  Showcase uses the "en" locale, which starts on Sunday.  If you switch the app to French, you'll see it starts on Monday (L = Lundi = Monday in French).

You can try adding the following lines to your gwt.xml file as a workaround:
  <extend-property name="locale" values="en"/>
  <set-property-fallback name="locale" value="en"/>

@jat - Did the start of the week change for the default locale after some recent CDLR update?

Thanks,
John LaBanca
jlab...@google.com


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


John Tamplin

unread,
Jan 5, 2011, 1:00:58 PM1/5/11
to John LaBanca, google-we...@googlegroups.com
On Wed, Jan 5, 2011 at 12:14 PM, John LaBanca <jlab...@google.com> wrote:
Are you using the default locale?  I'm pretty sure that the start of week info comes from the CDLR locale data, which we update periodically from some open source resource.  Showcase uses the "en" locale, which starts on Sunday.  If you switch the app to French, you'll see it starts on Monday (L = Lundi = Monday in French).

You can try adding the following lines to your gwt.xml file as a workaround:
  <extend-property name="locale" values="en"/>
  <set-property-fallback name="locale" value="en"/>

@jat - Did the start of the week change for the default locale after some recent CDLR update?

Yes, more of the world's population uses Monday as the first day of the week, so we use that for "default".  Previously, most "default" values were from "en".

As you suggest, you really should always be running a GWT app in a real locale if possible, rather than "default" -- it should truly be the last resort if you have nothing better to match.

--
John A. Tamplin
Software Engineer (GWT), Google

Dan

unread,
Jan 6, 2011, 10:58:43 AM1/6/11
to Google Web Toolkit
Adding those two lines to the gwt.xml file does the job.

However, now my compiles make 10 permutations, rather than 5. Is there
a way to get that back to 5 permutations?


On Jan 5, 12:14 pm, John LaBanca <jlaba...@google.com> wrote:
> Are you using the default locale?  I'm pretty sure that the start of week
> info comes from the CDLR locale data, which we update periodically from some
> open source resource.  Showcase uses the "en" locale, which starts on
> Sunday.  If you switch the app to French, you'll see it starts on Monday (L
> = Lundi = Monday in French).
>
> You can try adding the following lines to your gwt.xml file as a workaround:
>   <extend-property name="locale" values="en"/>
>   <set-property-fallback name="locale" value="en"/>
>
> @jat - Did the start of the week change for the default locale after some
> recent CDLR update?
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
>
>
>
>
> On Wed, Jan 5, 2011 at 10:57 AM, Ben Imp <benlee...@gmail.com> wrote:
> > I experienced this as well.  I noticed it right after I upgraded to
> > GWT 2.1, so I assume that must have done it.  I've ignored it so far,
> > as no one in my organization seems to care, but I must admit, I am
> > curious as to the cause.
>
> > -Ben
>
> > On Jan 5, 9:51 am, Dan <danpr...@gmail.com> wrote:
> > > My DatePicker in my program used to start with Sunday, but since some
> > > time recently--I don't know when--it has been starting with Monday.
>
> > > I've done nothing in this area.
>
> > > What do I do to get it back to starting with Sunday?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .

Thomas Broyer

unread,
Jan 6, 2011, 11:43:23 AM1/6/11
to google-we...@googlegroups.com
Add a third line:
<set-property name="locale" value="en"/>

Dan

unread,
Jan 6, 2011, 11:51:54 AM1/6/11
to Google Web Toolkit
Thank you Thomas (and others). It is all working well now.
Reply all
Reply to author
Forward
0 new messages