gothinkster / django-realworld-example-app

1.61k stars 637 forks source link

Update strftime to timestamp in token generation. #11

Open Nifled opened 7 years ago

Nifled commented 7 years ago

dt.strftime('%s') doesn't work on Windows systems (ValueError: Invalid format string) due to %s being a Unix-based system only compatible string format for datetimes.

Using timestamp introduced in Python 3.3 is compatible with Unix and Windows-based systems and functional for the project and when using it later for connecting it to a front-end (the other real-world example projects based on Conduit).