You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Thomas-W Hofmann <th...@db.com> on 2006/12/05 15:02:59 UTC
BUG : : Re: 3.1 RC1 Calendar problem
When Locale in Weblog is set to "German" , The listed days start with
Monday (ie. german abbrev. Mo)
when locale is set to "English" the listed days start with Sunday (Sun)
I think this is a bug
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Thomas-W Hofmann <th...@db.com> schrieb am 05/12/2006
10:34:28:
> Yes , December 2006
>
> -Thomas
>
> "Shutra Zhou" <zh...@gmail.com> schrieb am 05/12/2006 02:10:39:
>
> > The year is right?
> >
> > 2006/12/5, Thomas-W Hofmann <th...@db.com>:
> > >
> > > Hi,
> > >
> > > my calendar is +1 day off.
> > >
> > > That means it shows December 4th as a Tuesday !. I checked timezone
> > > settings and they are all set to CET Europe/Berlin.
> > > It stays that way the whole day . I dont think its related to the
> timzone.
> > >
> > > any ideas ?
> > >
> > > Thomas
> > >
> > >
> > >
> > > --
> > >
> > > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail
> > > irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender
> und
> > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte
> > > Weitergabe dieser Mail ist nicht gestattet.
> > >
> > > This e-mail may contain confidential and/or privileged information.
If
> you
> > > are not the intended recipient (or have received this e-mail in
error)
> > > please notify the sender immediately and destroy this e-mail. Any
> > > unauthorized copying, disclosure or distribution of the material in
> this
> > > e-mail is strictly forbidden.
> > >
>
>
>
>
> --
>
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
> sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail
> in error) please notify the sender immediately and destroy this e-
> mail. Any unauthorized copying, disclosure or distribution of the
> material in this e-mail is strictly forbidden.
--
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Re: RE: BUG : : Re: 3.1 RC1 Calendar problem
Posted by Shutra Zhou <zh...@gmail.com>.
Gotcha.
2006/12/5, Thomas-W Hofmann <th...@db.com>:
>
> Hi, found the codepiece.
>
> Fact : First day of week in America = Sunday
> First day of week in Europe = Monday
>
> This looks fine, so I think the days (1-xx) printed into the calendar
> matrix are not aligned correctly.
>
>
> /**
> * Helper method to build the names of the weekdays. This
> * used to take place in the <code>CalendarTag</code> constructor,
> * but there, <code>mLocale</code> doesn't have the correct value yet.
> */
> private void buildDayNames() {
> // build array of names of days of week
> mDayNames = new String[7];
> Calendar dayNameCal = Calendar.getInstance(mLocale);
> SimpleDateFormat dayFormatter = new SimpleDateFormat("EEE",
> mLocale);
> dayNameCal.set(Calendar.DAY_OF_WEEK,
> dayNameCal.getFirstDayOfWeek());
> for (int dnum = 0; dnum < 7; dnum++) {
> mDayNames[dnum] = dayFormatter.format(dayNameCal.getTime());
> dayNameCal.add(Calendar.DATE, 1);
> }
> }
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Thomas Hofmann
>
> <Er...@sanofipasteur.com> schrieb am 05/12/2006 15:05:28:
>
> > Same thing with French.
> > I've looked for a while, and i think it directly comes from the JDK
> > classes...
> >
> > -----Message d'origine-----
> > De : Thomas-W Hofmann [mailto:thomas-w.hofmann@db.com]
> > Envoyé : mardi 5 décembre 2006 15:03
> > À : roller-user@incubator.apache.org
> > Objet : BUG : : Re: 3.1 RC1 Calendar problem
> >
> > When Locale in Weblog is set to "German" , The listed days start
> > with Monday (ie. german abbrev. Mo) when locale is set to "English"
> > the listed days start with Sunday (Sun)
> >
> > I think this is a bug
> >
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> >
> > Thomas-W Hofmann <th...@db.com> schrieb am
> 05/12/2006
> > 10:34:28:
> >
> > > Yes , December 2006
> > >
> > > -Thomas
> > >
> > > "Shutra Zhou" <zh...@gmail.com> schrieb am 05/12/2006 02:10:39:
> > >
> > > > The year is right?
> > > >
> > > > 2006/12/5, Thomas-W Hofmann <th...@db.com>:
> > > > >
> > > > > Hi,
> > > > >
> > > > > my calendar is +1 day off.
> > > > >
> > > > > That means it shows December 4th as a Tuesday !. I checked
> > > > > timezone settings and they are all set to CET Europe/Berlin.
> > > > > It stays that way the whole day . I dont think its related to the
> > > timzone.
> > > > >
> > > > > any ideas ?
> > > > >
> > > > > Thomas
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > > > > Informationen. Wenn Sie nicht der richtige Adressat sind oder
> > > > > diese
> > > E-Mail
> > > > > irrtuemlich erhalten haben, informieren Sie bitte sofort den
> > Absender
> > > und
> > > > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
> > unbefugte
> > > > > Weitergabe dieser Mail ist nicht gestattet.
> > > > >
> > > > > This e-mail may contain confidential and/or privileged
> information.
> > If
> > > you
> > > > > are not the intended recipient (or have received this e-mail in
> > error)
> > > > > please notify the sender immediately and destroy this e-mail. Any
> > > > > unauthorized copying, disclosure or distribution of the material
> > > > > in
> > > this
> > > > > e-mail is strictly forbidden.
> > > > >
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> > > E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> > > Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> > > die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> > >
> > > This e-mail may contain confidential and/or privileged information.
> > > If you are not the intended recipient (or have received this e-mail in
>
> > > error) please notify the sender immediately and destroy this e- mail.
> > > Any unauthorized copying, disclosure or distribution of the material
> > > in this e-mail is strictly forbidden.
> >
> >
> >
> > --
> >
> > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> > E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> > Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
> > sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> >
> > This e-mail may contain confidential and/or privileged information.
> > If you are not the intended recipient (or have received this e-mail
> > in error) please notify the sender immediately and destroy this e-
> > mail. Any unauthorized copying, disclosure or distribution of the
> > material in this e-mail is strictly forbidden.
> >
>
> -------------------------------------------------------------------------------------------
> > "Cette communication (y compris les pieces jointes) est reservee a
> > l'usage exclusif du destinataire (des destinataires) et peut
> > contenir des informations privilegiees, confidentielles, exemptees
> > de divulgation selon la loi ou protegees par les droits d'auteur. Si
> > vous n'etes pas un destinataire, toute utilisation, divulgation,
> > distribution, reproduction, examen ou copie (totale ou partielle)
> > est non-autorisee et peut etre illegale. Tout message electronique
> > est susceptible d'alteration et son integrite ne peut etre assuree.
> > Sanofi Pasteur decline toute responsabilite au titre de ce message
> > s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de
> > ce message, merci de le detruire immediatement et d'avertir
> > l'expediteur de l'erreur de distribution et de la destruction du
> > message. Merci.
> > This transmission (including any attachments) is intended solely for
> > the use of the addressee(s) and may contain confidential information
> > including trade secrets which are privileged, confidential, exempt
> > from disclosure under applicable law and/or subject to copyright. If
> > you are not an intended recipient, any use, disclosure,
> > distribution, reproduction, review or copying (either whole or
> > partial) is unauthorized and may be unlawful. E-mails are
> > susceptible to alteration and their integrity cannot be guaranteed.
> > Sanofi Pasteur shall not be liable for this e-mail if modified or
> > falsified. If you are not the intended recipient of this e-mail,
> > please delete it immediately from your system and notify the sender
> > of the wrong delivery and the mail deletion. Thank you."
> > **********************************************************************
> >
>
>
>
>
> --
>
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
Re: Antwort: RE: BUG : : Re: 3.1 RC1 Calendar problem
Posted by Anil Gangolli <an...@busybuddha.org>.
Should be fixed in 3.1 RC2.
--a.
----- Original Message -----
From: "Anil Gangolli" <an...@busybuddha.org>
To: <ro...@incubator.apache.org>
Sent: Tuesday, December 05, 2006 7:28 AM
Subject: Re: Antwort: RE: BUG : : Re: 3.1 RC1 Calendar problem
> ROL-1312
>
> ----- Original Message -----
> From: "Thomas-W Hofmann" <th...@db.com>
> To: <ro...@incubator.apache.org>
> Sent: Tuesday, December 05, 2006 6:29 AM
> Subject: Antwort: RE: BUG : : Re: 3.1 RC1 Calendar problem
>
>
> Hi, found the codepiece.
>
> Fact : First day of week in America = Sunday
> First day of week in Europe = Monday
>
> This looks fine, so I think the days (1-xx) printed into the calendar
> matrix are not aligned correctly.
>
>
> /**
> * Helper method to build the names of the weekdays. This
> * used to take place in the <code>CalendarTag</code> constructor,
> * but there, <code>mLocale</code> doesn't have the correct value yet.
> */
> private void buildDayNames() {
> // build array of names of days of week
> mDayNames = new String[7];
> Calendar dayNameCal = Calendar.getInstance(mLocale);
> SimpleDateFormat dayFormatter = new SimpleDateFormat("EEE",
> mLocale);
> dayNameCal.set(Calendar.DAY_OF_WEEK,
> dayNameCal.getFirstDayOfWeek());
> for (int dnum = 0; dnum < 7; dnum++) {
> mDayNames[dnum] = dayFormatter.format(dayNameCal.getTime());
> dayNameCal.add(Calendar.DATE, 1);
> }
> }
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Thomas Hofmann
>
> <Er...@sanofipasteur.com> schrieb am 05/12/2006 15:05:28:
>
>> Same thing with French.
>> I've looked for a while, and i think it directly comes from the JDK
>> classes...
>>
>> -----Message d'origine-----
>> De : Thomas-W Hofmann [mailto:thomas-w.hofmann@db.com]
>> Envoyé : mardi 5 décembre 2006 15:03
>> À : roller-user@incubator.apache.org
>> Objet : BUG : : Re: 3.1 RC1 Calendar problem
>>
>> When Locale in Weblog is set to "German" , The listed days start
>> with Monday (ie. german abbrev. Mo) when locale is set to "English"
>> the listed days start with Sunday (Sun)
>>
>> I think this is a bug
>>
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>
>> Thomas-W Hofmann <th...@db.com> schrieb am
> 05/12/2006
>> 10:34:28:
>>
>> > Yes , December 2006
>> >
>> > -Thomas
>> >
>> > "Shutra Zhou" <zh...@gmail.com> schrieb am 05/12/2006 02:10:39:
>> >
>> > > The year is right?
>> > >
>> > > 2006/12/5, Thomas-W Hofmann <th...@db.com>:
>> > > >
>> > > > Hi,
>> > > >
>> > > > my calendar is +1 day off.
>> > > >
>> > > > That means it shows December 4th as a Tuesday !. I checked
>> > > > timezone settings and they are all set to CET Europe/Berlin.
>> > > > It stays that way the whole day . I dont think its related to the
>> > timzone.
>> > > >
>> > > > any ideas ?
>> > > >
>> > > > Thomas
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
>> > > > Informationen. Wenn Sie nicht der richtige Adressat sind oder
>> > > > diese
>> > E-Mail
>> > > > irrtuemlich erhalten haben, informieren Sie bitte sofort den
>> Absender
>> > und
>> > > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
>> unbefugte
>> > > > Weitergabe dieser Mail ist nicht gestattet.
>> > > >
>> > > > This e-mail may contain confidential and/or privileged
> information.
>> If
>> > you
>> > > > are not the intended recipient (or have received this e-mail in
>> error)
>> > > > please notify the sender immediately and destroy this e-mail. Any
>> > > > unauthorized copying, disclosure or distribution of the material
>> > > > in
>> > this
>> > > > e-mail is strictly forbidden.
>> > > >
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
>> > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
>> > E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
>> > Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
>> > die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>> >
>> > This e-mail may contain confidential and/or privileged information.
>> > If you are not the intended recipient (or have received this e-mail in
>
>> > error) please notify the sender immediately and destroy this e- mail.
>> > Any unauthorized copying, disclosure or distribution of the material
>> > in this e-mail is strictly forbidden.
>>
>>
>>
>> --
>>
>> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
>> E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
>> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
>> sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>>
>> This e-mail may contain confidential and/or privileged information.
>> If you are not the intended recipient (or have received this e-mail
>> in error) please notify the sender immediately and destroy this e-
>> mail. Any unauthorized copying, disclosure or distribution of the
>> material in this e-mail is strictly forbidden.
>>
> -------------------------------------------------------------------------------------------
>> "Cette communication (y compris les pieces jointes) est reservee a
>> l'usage exclusif du destinataire (des destinataires) et peut
>> contenir des informations privilegiees, confidentielles, exemptees
>> de divulgation selon la loi ou protegees par les droits d'auteur. Si
>> vous n'etes pas un destinataire, toute utilisation, divulgation,
>> distribution, reproduction, examen ou copie (totale ou partielle)
>> est non-autorisee et peut etre illegale. Tout message electronique
>> est susceptible d'alteration et son integrite ne peut etre assuree.
>> Sanofi Pasteur decline toute responsabilite au titre de ce message
>> s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de
>> ce message, merci de le detruire immediatement et d'avertir
>> l'expediteur de l'erreur de distribution et de la destruction du
>> message. Merci.
>> This transmission (including any attachments) is intended solely for
>> the use of the addressee(s) and may contain confidential information
>> including trade secrets which are privileged, confidential, exempt
>> from disclosure under applicable law and/or subject to copyright. If
>> you are not an intended recipient, any use, disclosure,
>> distribution, reproduction, review or copying (either whole or
>> partial) is unauthorized and may be unlawful. E-mails are
>> susceptible to alteration and their integrity cannot be guaranteed.
>> Sanofi Pasteur shall not be liable for this e-mail if modified or
>> falsified. If you are not the intended recipient of this e-mail,
>> please delete it immediately from your system and notify the sender
>> of the wrong delivery and the mail deletion. Thank you."
>> **********************************************************************
>>
>
>
>
>
> --
>
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
Re: Antwort: RE: BUG : : Re: 3.1 RC1 Calendar problem
Posted by Anil Gangolli <an...@busybuddha.org>.
ROL-1312
----- Original Message -----
From: "Thomas-W Hofmann" <th...@db.com>
To: <ro...@incubator.apache.org>
Sent: Tuesday, December 05, 2006 6:29 AM
Subject: Antwort: RE: BUG : : Re: 3.1 RC1 Calendar problem
Hi, found the codepiece.
Fact : First day of week in America = Sunday
First day of week in Europe = Monday
This looks fine, so I think the days (1-xx) printed into the calendar
matrix are not aligned correctly.
/**
* Helper method to build the names of the weekdays. This
* used to take place in the <code>CalendarTag</code> constructor,
* but there, <code>mLocale</code> doesn't have the correct value yet.
*/
private void buildDayNames() {
// build array of names of days of week
mDayNames = new String[7];
Calendar dayNameCal = Calendar.getInstance(mLocale);
SimpleDateFormat dayFormatter = new SimpleDateFormat("EEE",
mLocale);
dayNameCal.set(Calendar.DAY_OF_WEEK,
dayNameCal.getFirstDayOfWeek());
for (int dnum = 0; dnum < 7; dnum++) {
mDayNames[dnum] = dayFormatter.format(dayNameCal.getTime());
dayNameCal.add(Calendar.DATE, 1);
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Thomas Hofmann
<Er...@sanofipasteur.com> schrieb am 05/12/2006 15:05:28:
> Same thing with French.
> I've looked for a while, and i think it directly comes from the JDK
> classes...
>
> -----Message d'origine-----
> De : Thomas-W Hofmann [mailto:thomas-w.hofmann@db.com]
> Envoyé : mardi 5 décembre 2006 15:03
> À : roller-user@incubator.apache.org
> Objet : BUG : : Re: 3.1 RC1 Calendar problem
>
> When Locale in Weblog is set to "German" , The listed days start
> with Monday (ie. german abbrev. Mo) when locale is set to "English"
> the listed days start with Sunday (Sun)
>
> I think this is a bug
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>
> Thomas-W Hofmann <th...@db.com> schrieb am
05/12/2006
> 10:34:28:
>
> > Yes , December 2006
> >
> > -Thomas
> >
> > "Shutra Zhou" <zh...@gmail.com> schrieb am 05/12/2006 02:10:39:
> >
> > > The year is right?
> > >
> > > 2006/12/5, Thomas-W Hofmann <th...@db.com>:
> > > >
> > > > Hi,
> > > >
> > > > my calendar is +1 day off.
> > > >
> > > > That means it shows December 4th as a Tuesday !. I checked
> > > > timezone settings and they are all set to CET Europe/Berlin.
> > > > It stays that way the whole day . I dont think its related to the
> > timzone.
> > > >
> > > > any ideas ?
> > > >
> > > > Thomas
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > > > Informationen. Wenn Sie nicht der richtige Adressat sind oder
> > > > diese
> > E-Mail
> > > > irrtuemlich erhalten haben, informieren Sie bitte sofort den
> Absender
> > und
> > > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
> unbefugte
> > > > Weitergabe dieser Mail ist nicht gestattet.
> > > >
> > > > This e-mail may contain confidential and/or privileged
information.
> If
> > you
> > > > are not the intended recipient (or have received this e-mail in
> error)
> > > > please notify the sender immediately and destroy this e-mail. Any
> > > > unauthorized copying, disclosure or distribution of the material
> > > > in
> > this
> > > > e-mail is strictly forbidden.
> > > >
> >
> >
> >
> >
> > --
> >
> > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> > E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> > Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> > die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> >
> > This e-mail may contain confidential and/or privileged information.
> > If you are not the intended recipient (or have received this e-mail in
> > error) please notify the sender immediately and destroy this e- mail.
> > Any unauthorized copying, disclosure or distribution of the material
> > in this e-mail is strictly forbidden.
>
>
>
> --
>
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
> sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail
> in error) please notify the sender immediately and destroy this e-
> mail. Any unauthorized copying, disclosure or distribution of the
> material in this e-mail is strictly forbidden.
>
-------------------------------------------------------------------------------------------
> "Cette communication (y compris les pieces jointes) est reservee a
> l'usage exclusif du destinataire (des destinataires) et peut
> contenir des informations privilegiees, confidentielles, exemptees
> de divulgation selon la loi ou protegees par les droits d'auteur. Si
> vous n'etes pas un destinataire, toute utilisation, divulgation,
> distribution, reproduction, examen ou copie (totale ou partielle)
> est non-autorisee et peut etre illegale. Tout message electronique
> est susceptible d'alteration et son integrite ne peut etre assuree.
> Sanofi Pasteur decline toute responsabilite au titre de ce message
> s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de
> ce message, merci de le detruire immediatement et d'avertir
> l'expediteur de l'erreur de distribution et de la destruction du
> message. Merci.
> This transmission (including any attachments) is intended solely for
> the use of the addressee(s) and may contain confidential information
> including trade secrets which are privileged, confidential, exempt
> from disclosure under applicable law and/or subject to copyright. If
> you are not an intended recipient, any use, disclosure,
> distribution, reproduction, review or copying (either whole or
> partial) is unauthorized and may be unlawful. E-mails are
> susceptible to alteration and their integrity cannot be guaranteed.
> Sanofi Pasteur shall not be liable for this e-mail if modified or
> falsified. If you are not the intended recipient of this e-mail,
> please delete it immediately from your system and notify the sender
> of the wrong delivery and the mail deletion. Thank you."
> **********************************************************************
>
--
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
Antwort: RE: BUG : : Re: 3.1 RC1 Calendar problem
Posted by Thomas-W Hofmann <th...@db.com>.
Hi, found the codepiece.
Fact : First day of week in America = Sunday
First day of week in Europe = Monday
This looks fine, so I think the days (1-xx) printed into the calendar
matrix are not aligned correctly.
/**
* Helper method to build the names of the weekdays. This
* used to take place in the <code>CalendarTag</code> constructor,
* but there, <code>mLocale</code> doesn't have the correct value yet.
*/
private void buildDayNames() {
// build array of names of days of week
mDayNames = new String[7];
Calendar dayNameCal = Calendar.getInstance(mLocale);
SimpleDateFormat dayFormatter = new SimpleDateFormat("EEE",
mLocale);
dayNameCal.set(Calendar.DAY_OF_WEEK,
dayNameCal.getFirstDayOfWeek());
for (int dnum = 0; dnum < 7; dnum++) {
mDayNames[dnum] = dayFormatter.format(dayNameCal.getTime());
dayNameCal.add(Calendar.DATE, 1);
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Thomas Hofmann
<Er...@sanofipasteur.com> schrieb am 05/12/2006 15:05:28:
> Same thing with French.
> I've looked for a while, and i think it directly comes from the JDK
> classes...
>
> -----Message d'origine-----
> De : Thomas-W Hofmann [mailto:thomas-w.hofmann@db.com]
> Envoyé : mardi 5 décembre 2006 15:03
> À : roller-user@incubator.apache.org
> Objet : BUG : : Re: 3.1 RC1 Calendar problem
>
> When Locale in Weblog is set to "German" , The listed days start
> with Monday (ie. german abbrev. Mo) when locale is set to "English"
> the listed days start with Sunday (Sun)
>
> I think this is a bug
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>
> Thomas-W Hofmann <th...@db.com> schrieb am
05/12/2006
> 10:34:28:
>
> > Yes , December 2006
> >
> > -Thomas
> >
> > "Shutra Zhou" <zh...@gmail.com> schrieb am 05/12/2006 02:10:39:
> >
> > > The year is right?
> > >
> > > 2006/12/5, Thomas-W Hofmann <th...@db.com>:
> > > >
> > > > Hi,
> > > >
> > > > my calendar is +1 day off.
> > > >
> > > > That means it shows December 4th as a Tuesday !. I checked
> > > > timezone settings and they are all set to CET Europe/Berlin.
> > > > It stays that way the whole day . I dont think its related to the
> > timzone.
> > > >
> > > > any ideas ?
> > > >
> > > > Thomas
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > > > Informationen. Wenn Sie nicht der richtige Adressat sind oder
> > > > diese
> > E-Mail
> > > > irrtuemlich erhalten haben, informieren Sie bitte sofort den
> Absender
> > und
> > > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
> unbefugte
> > > > Weitergabe dieser Mail ist nicht gestattet.
> > > >
> > > > This e-mail may contain confidential and/or privileged
information.
> If
> > you
> > > > are not the intended recipient (or have received this e-mail in
> error)
> > > > please notify the sender immediately and destroy this e-mail. Any
> > > > unauthorized copying, disclosure or distribution of the material
> > > > in
> > this
> > > > e-mail is strictly forbidden.
> > > >
> >
> >
> >
> >
> > --
> >
> > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> > E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> > Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> > die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> >
> > This e-mail may contain confidential and/or privileged information.
> > If you are not the intended recipient (or have received this e-mail in
> > error) please notify the sender immediately and destroy this e- mail.
> > Any unauthorized copying, disclosure or distribution of the material
> > in this e-mail is strictly forbidden.
>
>
>
> --
>
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
> sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail
> in error) please notify the sender immediately and destroy this e-
> mail. Any unauthorized copying, disclosure or distribution of the
> material in this e-mail is strictly forbidden.
>
-------------------------------------------------------------------------------------------
> "Cette communication (y compris les pieces jointes) est reservee a
> l'usage exclusif du destinataire (des destinataires) et peut
> contenir des informations privilegiees, confidentielles, exemptees
> de divulgation selon la loi ou protegees par les droits d'auteur. Si
> vous n'etes pas un destinataire, toute utilisation, divulgation,
> distribution, reproduction, examen ou copie (totale ou partielle)
> est non-autorisee et peut etre illegale. Tout message electronique
> est susceptible d'alteration et son integrite ne peut etre assuree.
> Sanofi Pasteur decline toute responsabilite au titre de ce message
> s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de
> ce message, merci de le detruire immediatement et d'avertir
> l'expediteur de l'erreur de distribution et de la destruction du
> message. Merci.
> This transmission (including any attachments) is intended solely for
> the use of the addressee(s) and may contain confidential information
> including trade secrets which are privileged, confidential, exempt
> from disclosure under applicable law and/or subject to copyright. If
> you are not an intended recipient, any use, disclosure,
> distribution, reproduction, review or copying (either whole or
> partial) is unauthorized and may be unlawful. E-mails are
> susceptible to alteration and their integrity cannot be guaranteed.
> Sanofi Pasteur shall not be liable for this e-mail if modified or
> falsified. If you are not the intended recipient of this e-mail,
> please delete it immediately from your system and notify the sender
> of the wrong delivery and the mail deletion. Thank you."
> **********************************************************************
>
--
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
RE: BUG : : Re: 3.1 RC1 Calendar problem
Posted by Er...@sanofipasteur.com.
Same thing with French.
I've looked for a while, and i think it directly comes from the JDK classes...
-----Message d'origine-----
De : Thomas-W Hofmann [mailto:thomas-w.hofmann@db.com]
Envoyé : mardi 5 décembre 2006 15:03
À : roller-user@incubator.apache.org
Objet : BUG : : Re: 3.1 RC1 Calendar problem
When Locale in Weblog is set to "German" , The listed days start with Monday (ie. german abbrev. Mo) when locale is set to "English" the listed days start with Sunday (Sun)
I think this is a bug
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Thomas-W Hofmann <th...@db.com> schrieb am 05/12/2006
10:34:28:
> Yes , December 2006
>
> -Thomas
>
> "Shutra Zhou" <zh...@gmail.com> schrieb am 05/12/2006 02:10:39:
>
> > The year is right?
> >
> > 2006/12/5, Thomas-W Hofmann <th...@db.com>:
> > >
> > > Hi,
> > >
> > > my calendar is +1 day off.
> > >
> > > That means it shows December 4th as a Tuesday !. I checked
> > > timezone settings and they are all set to CET Europe/Berlin.
> > > It stays that way the whole day . I dont think its related to the
> timzone.
> > >
> > > any ideas ?
> > >
> > > Thomas
> > >
> > >
> > >
> > > --
> > >
> > > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> > > Informationen. Wenn Sie nicht der richtige Adressat sind oder
> > > diese
> E-Mail
> > > irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender
> und
> > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte
> > > Weitergabe dieser Mail ist nicht gestattet.
> > >
> > > This e-mail may contain confidential and/or privileged information.
If
> you
> > > are not the intended recipient (or have received this e-mail in
error)
> > > please notify the sender immediately and destroy this e-mail. Any
> > > unauthorized copying, disclosure or distribution of the material
> > > in
> this
> > > e-mail is strictly forbidden.
> > >
>
>
>
>
> --
>
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e- mail.
> Any unauthorized copying, disclosure or distribution of the material
> in this e-mail is strictly forbidden.
--
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
-------------------------------------------------------------------------------------------
"Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you."
**********************************************************************