Invalid Date

Mac OSX specific forum
User avatar
mk-soft
Always Here
Always Here
Posts: 5386
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Invalid Date

Post 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.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 16664
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Invalid Date

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 5386
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Invalid Date

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 5386
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Invalid Date

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 16664
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Invalid Date

Post by Fred »

I didn't change anything, does it looks right for you now ?
User avatar
mk-soft
Always Here
Always Here
Posts: 5386
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Invalid Date

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply