Page 1 of 1

Invalid Date

Posted: Sun Jan 17, 2016 12:49 pm
by mk-soft
Invalid Date at midnight

Code: Select all

OpenWindow(0, 100, 100, 200, 200, "DateGadget")
DateGadget(0, 10, 10, 180, 25, "Date: %mm/%dd/%yyyy")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Perhaps a UTC to localtime problem.

Re: Invalid Date

Posted: Mon Feb 22, 2016 5:37 am
by Fred
Tried to reproduce the issue without success. Could you put the hour/minute in the field to see if there is a local/UTC error ?

Code: Select all

OpenWindow(0, 100, 100, 200, 200, "DateGadget")
DateGadget(0, 10, 10, 180, 25, "Date: %mm/%dd/%yyyy %hh:%ii")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow

Re: Invalid Date

Posted: Thu Feb 25, 2016 6:11 pm
by mk-soft
Ok...

Invalid day between 23:00 to 23:59 with timezone "Lüneburg - Deutschland".

Mac OS X El Capitan 10.11.3

P.S.

Code: Select all

OpenWindow(0, 100, 100, 200, 400, "DateGadget")
DateGadget(0, 10, 10, 180, 25, "Date: %mm/%dd/%yyyy 23:00") ; false
DateGadget(1, 10, 190, 180, 25, "Date: %mm/%dd/%yyyy 23:59") ; false

Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow

Re: Invalid Date

Posted: Sat Feb 27, 2016 10:29 am
by mk-soft
Fixed in v5.42B4 :?:

When calendargadget returns an hour plus

Code: Select all

If OpenWindow(0, 0, 0, 250, 200, "CalendarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CalendarGadget(0, 10, 10, 230, 180);, Date(2016,2,27,23,59,0))
  Repeat
    ev = WaitWindowEvent()
    Select ev
      Case #PB_Event_Gadget
        Select EventGadget()
          Case 0
            Debug GetGadgetText(0)
        EndSelect
        
    EndSelect
    
  Until ev = #PB_Event_CloseWindow
EndIf

Re: Invalid Date

Posted: Sat Feb 27, 2016 12:59 pm
by Fred
I didn't change anything, does it looks right for you now ?

Re: Invalid Date

Posted: Sun Feb 28, 2016 11:56 am
by mk-soft
No longer understand the world.

Today it's back properly with the version V5.41 and V5.42
But not when I have the XCode performed the update

The open with the Calendar gadget and the one hour plus but is still