Fix the fetching of demo data

On my system the formatting for time.ctime was different from what was expected. I changed to using just the time module, which also simplifies the code.

Need to wait for #571 for Travis to work again :/