Ops, you are right, I should have double checked. Sorry for the confusion,
but glad it worked!
On Wed, 21 Feb 2018, 01:32 Madhavan Mukund, <madhavan@xxxxxxxxx> wrote:
Yes, the manual fix worked.
Incidentally, the JSON labels with timestamps are "start:" and "stop:"
and do not include the string "time". Before writing to the mailing
list, I did think of searching and editing the time-stamp manually,
but could not spot what to edit. Searching for 4102444800 worked.
Thanks.
--Madhavan
On 20 February 2018 at 23:01 +0530, Stefano Maggiolo <s.maggiolo@xxxxxxxxx>
wrote:
That's probably because you're importing in a 32bit environment and thewrote:
timestamp is the default we use in 2100...
Manual fixing is pretty easy, you open the json (unpacking the dump if
necessary) and search for end_time, there should be at least one with
value 4102444800 (or something similar). If you change it to 2000000000
(before 2038) it should work.
On Tue, 20 Feb 2018 at 14:36, Madhavan Mukund <madhavan@xxxxxxxxx>
"/home/madhavan/cms_venv/local/lib/python2.7/site-packages/cms-1.3rc0-py2.7.egg/cmscommon/datetime.py",
I'm trying to load a contest dump that I made in May 2017 using
cms-1.3.rc0. I get the error below. I get the same error for a dump
from April 2017 which I have imported successfully at that time. I am
currently able to import an earier dump from 2016 (after using
DumpUpdater). Any idea what I can do to recover this contest dump?
Traceback (most recent call last):
File "./cmscontrib/DumpImporter.py", line 472, in <module>
sys.exit(main())
File "./cmscontrib/DumpImporter.py", line 467, in main
success = importer.do_import()
File "./cmscontrib/DumpImporter.py", line 207, in do_import
self.objs[id_] = self.import_object(data)
File "./cmscontrib/DumpImporter.py", line 351, in import_object
make_datetime(val) if val is not None else None
File
line 53, in make_datetime
return datetime.utcfromtimestamp(timestamp)
ValueError: timestamp out of range for platform time_t
--Madhavan