nicolewhite / neo4j-flask

Flaskr Extended with Neo4j and Py2neo.
http://nicolewhite.github.io/neo4j-flask/
312 stars 114 forks source link

Change strftime argument to resolve compatibility issues on Windows #7

Closed zhengqm closed 8 years ago

zhengqm commented 8 years ago
datetime.now().strftime('%Y-%m-%d')

works fine on both *nix and Windows, while

datetime.now().strftime('%F')   

gives ValueError: Invalid format string on Windows.

Both return a string in the format of "year-month-day"

nicolewhite commented 8 years ago

Good idea. :+1: