Opened 16 years ago

Closed 16 years ago

#127 closed Bug (No Bug)

GUICtrlCreateDate -> GUICtrlSetData wrong on Timefields

Reported by: Beejai <bjoern@…> Owned by:
Milestone: Component: AutoIt
Version: Severity:
Keywords: Cc:



when you create a Datepicker with GUICtrlCreateDate and make it "$DTS_TIMEFORMAT" to be a timepicker, the control looks fine. GUICtrlRead works fine on it and gets the time string. But GUICtrlSetData does not work as expected.
When I try to fill the field with that function with a timestring, the result is wrong. Only when I add a Date to the Timestring, it displays the correct time:

GUICtrlSetData(Eval ( "Time1"),"2000/01/01 " & $PEA_time[1])

This is unexpected, because GUICtrlRead returns only the time.

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by Jpm

It is always better to have a full repro script. That speed up analysis and avoid misinterpretation of what you really did.
Thanks for posting such script.

comment:2 Changed 16 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed
#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>

GUICtrlSetData($time1,"2000/01/01 " & $PEA_time)


This script works as expected

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.