rolkey / indyproject

Automatically exported from code.google.com/p/indyproject
0 stars 0 forks source link

TIdDateTimeStamp.SetFromTDateTime is one year ahead #188

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Using TIdDateTimeStamp.SetFromTDateTime(), the resulting date is one day, one 
month and one year ahead. This is because LocalDateTimeToTimeStamp() calls 
TIdDateTimeStamp.Zero(), which sets day=1, year=1, and then calls the various 
TIdDateTimeStamp.Add...() methods to increment the timestamp fields.  It should 
just assign the fields directly after decoding the TDateTime values.

Original issue reported on code.google.com by gambit47 on 18 Apr 2011 at 7:06

GoogleCodeExporter commented 8 years ago

Original comment by gambit47 on 12 Dec 2012 at 10:18