Bug#4990; Dates below the year 1900, need to be saved in raw format. Thanks Nick Hall
svn: r17771
This commit is contained in:
parent
e8a52bfc66
commit
85b6835acb
@ -1415,9 +1415,9 @@ def _create_datetime(date_elements):
|
|||||||
|
|
||||||
if pyear < 1900:
|
if pyear < 1900:
|
||||||
try:
|
try:
|
||||||
tmpdate = "%04d-%s-%02d %02d:%02d:%02d" % (
|
tmpdate = "%(yr)04d:%(mon)02d:%(dy)02d %(hr)02d:%(mins)02d:%(secs)02d" % {
|
||||||
pyear, _dd.long_months[pmonth], day,
|
'yr' : pyear, 'mon' : pmonth, 'dy' : day,
|
||||||
hour, minutes, seconds)
|
'hr' : hour, 'mins' : minutes, 'secs' : seconds }
|
||||||
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
tmpdate = False
|
tmpdate = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user