Anonymous | Login | Signup for a new account | 2019-02-18 02:12 CET |
Main | My View | View Issues | Change Log | Roadmap | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0005581 | [JEDI VCL] 00 JVCL Components | minor | always | 2011-05-19 17:27 | 2012-09-10 14:15 | ||
Reporter | roberto-novakosky | View Status | public | ||||
Assigned To | obones | ||||||
Priority | normal | Resolution | fixed | ||||
Status | resolved | Product Version | 3.35 | ||||
Summary | 0005581: TJvDBDateEdit showing blanks with ClientDataSet when date on the field is seted to 1899-12-30 | ||||||
Description |
Example: When a value on a Field on clientDataSet is seted to '1899-12-30' (corresponding to integer 0) the TJvDBDateEdit linked to the field shows blank text. The correct is it shows '1899-12-30' |
||||||
Additional Information |
When value on a Field on clientDataSet is seted to '1899-12-31' (corresponding to integer 1) the TJvDBDateEdit linked to the field shows correctly. The problem seams that internal code, when the date is 0, understand as nullDate, a TDateTime 0 defined inside code. 0 is a valid Date (0 = '1899-12-30') but is not showing in this case. The correct is it shows '1899-12-30'. Sugestion: Always shows if the field has a Valid Date. My tests: 1) MyClientDataSet.FieldByName('my_date').AsDAteTime := 0; TJvDBDateEdit must to show '1899-12-30', fail - show blank 2) MyDateTime := StrToDateTime('1899-12-30'); MyClientDataSet.FieldByName('my_date').AsDAteTime := MyDateTime; TJvDBDateEdit must to show '1899-12-30', fail - show blank 3) To other values works fine MyClientDataSet.FieldByName('my_date').AsDAteTime := -1; TJvDBDateEdit shows '1899-12-29', sucess OK (Tests using Delphi 2006 and JEDI VCL 3.35) |
||||||
Tags | No tags attached. | ||||||
Attached Files |
![]() |
||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |