You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
The timestamp that's stored in Trac 0.12.2 is in microseconds not seconds. So it's necessary to convert it into seconds by dividing 100000.
$ ./trac2pivotal.py trac.db pline-tractickets.csv
Reading "trac.db", writing "pline-tractickets-*.csv".
Converting 2182 tickets...
Writing tickets to pline-tractickets-1.csv ...
time =====> 1304016817559988
Traceback (most recent call last):
File "./trac2pivotal.py", line 296, in<module>main()
File "./trac2pivotal.py", line 291, in main
write_csv(source, target)
File "./trac2pivotal.py", line 244, in write_csv
forentryin source:
File "./trac2pivotal.py", line 221, in read_database
result["Created at"] = translate_time(ticket[2])
File "./trac2pivotal.py", line 139, in translate_time
date = datetime.fromtimestamp(time)
ValueError: year is out of range
Will send a pull request for the fix.
The text was updated successfully, but these errors were encountered:
ye
added a commit
to ye/Trac2Pivotal
that referenced
this issue
Mar 29, 2013
The timestamp that's stored in Trac 0.12.2 is in microseconds not seconds. So it's necessary to convert it into seconds by dividing 100000.
Will send a pull request for the fix.
The text was updated successfully, but these errors were encountered: