Menu

#1 DateComboBox shows date on wrong days

v1.0_(example)
open
nobody
5
2006-05-16
2006-05-16
No

I've noticed that the calendar in the DateComboBox is
wrong. It always shows a date a day ahead.

For example, today on TUESDAY, 16th of May it says
that it was Wednesday.

Is it possible to correct that somehow?

Discussion

  • iwex solution

    iwex solution - 2006-07-02

    Logged In: YES
    user_id=1548864

    I noticed this as well and I've done some changes in class
    DateComboBox.updatePopup(). If it's still an open issue
    I'd send you the changes.
    Regards Hansruedi

     
  • iwex solution

    iwex solution - 2006-07-02

    Logged In: YES
    user_id=1548864

    I noticed this as well and I've done some changes in class
    DateComboBox.updatePopup(). If it's still an open issue
    I'd send you the changes.
    Regards Hansruedi

     
  • Nobody/Anonymous

    Logged In: NO

    Hi. i also noticed that and corrected it
    you have to search the line "for (int i = 0; i < (first - 1); i++) {" in the function "updatePopup()" in the class "DatePopup". that line only works in the USA where the first day of the week is sunday (1). in your country, the first day of the week is probably monday (2). to correct that issue, change that line to "for (int i = setupCalendar.getFirstDayOfWeek(); i < first; i++) {" and everything works fine

    Greets, Klaue

    ps: yeah i know that the original poster probably doesn't need it anymore, but maybe someone else does, and Hansruedi, even if he probably found the answer, didn't post it here

     
  • Nobody/Anonymous

    Logged In: NO

    Hi. I also noticed the problem and spent some hours for fixing. The idea to tell you the problem took me to that site. But, what a surprice? You even know the problem! Since 2006! Its awesome that you still offer this buggy package, although the problem is solved by a comment here. Shame on you!

     

Log in to post a comment.