View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004375 | JEDI VCL | 00 JVCL Components | public | 2008-06-17 06:21 | 2008-10-14 02:31 |
Reporter | Evgeni00 | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Product Version | 3.33 | ||||
Target Version | Fixed in Version | ||||
Summary | 0004375: TJvDateTimePicker.Time = TJvDateTimePicker.DateTime = TJvDateTimePicker. Date :(( | ||||
Description | procedure TfrmMain.FormDblClick(Sender: TObject); begin memo1.Lines.Clear; TimePicker.DateTime := now; memo1.Lines.Add('Now:'+TimeToStr(Now)); memo1.Lines.Add('Now f:'+FloatToStr(Now)); memo1.Lines.Add('Time:'+TimeToStr(Time)); memo1.Lines.Add('Time f:'+FloatToStr(Time)); memo1.Lines.Add('Date:'+TimeToStr(Date)); memo1.Lines.Add('Date f:'+FloatToStr(Date)); memo1.Lines.Add('--------------------------'); memo1.Lines.Add('TimePicker.DateTime:'+TimeToStr(TimePicker.DateTime)); memo1.Lines.Add('TimePicker.DateTime f:'+FloatToStr(TimePicker.DateTime)); memo1.Lines.Add('TimePicker.Time:'+TimeToStr(TimePicker.Time)); memo1.Lines.Add('TimePicker.Time f:'+FloatToStr(TimePicker.Time)); memo1.Lines.Add('TimePicker.Date:'+TimeToStr(TimePicker.Date)); memo1.Lines.Add('TimePicker.Date f:'+FloatToStr(TimePicker.Date)); end; Output in memo1: Now:16:19:20 Now f:39616,6800952083 Time:16:19:20 Time f:0,680095208333333 Date:0:00:00 Date f:39616 -------------------------- TimePicker.DateTime:16:19:20 TimePicker.DateTime f:39616,6800951968 TimePicker.Time:16:19:20 TimePicker.Time f:39616,6800951968 TimePicker.Date:16:19:20 TimePicker.Date f:39616,6800951968 | ||||
Tags | No tags attached. | ||||
|
This behaviour is the same as the one present in TDateTimePicker from Delphi which we inherit from. As such, we are not sure we should change this. As the "GetDate" and "GetTime" functions for the property are not virtual, it makes any overload only valid when using a TJvDateTimePicker reference. |
Date Modified | Username | Field | Change |
---|---|---|---|
2008-06-17 06:21 | Evgeni00 | New Issue | |
2008-06-19 04:32 | obones | Note Added: 0014343 | |
2008-06-19 04:32 | obones | Status | new => feedback |
2008-10-14 02:30 | obones | Status | feedback => resolved |
2008-10-14 02:30 | obones | Resolution | open => won't fix |
2008-10-14 02:30 | obones | Assigned To | => obones |