gnarlinsky / fab-lab-signin

Sign in to the Fab Lab space and other things
1 stars 0 forks source link

Collecting things to add to developer documentation #33

Closed gnarlinsky closed 10 years ago

gnarlinsky commented 10 years ago

Developing this Flask app on Windows?

Good luck with that.

Python on Windows:

>>> import datetime
>>> d = datetime.datetime(2013, 12, 18, 2, 58)
datetime.datetime(2013, 12, 18, 2, 58)
>>> d.strftime('%m/%e/%Y')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Invalid format string

From http://php.net/manual/en/function.strftime.php:

Not all conversion specifiers may be supported by your C library, in which case they will not be supported by PHP's strftime(). Additionally, not all platforms support negative timestamps, so your date range may be limited to no earlier than the Unix epoch. This means that %e, %T, %R and, %D (and possibly others) - as well as dates prior to Jan 1, 1970 - will not work on Windows, some Linux distributions, and a few other operating systems.

More info from MSDN: http://msdn.microsoft.com/en-us/library/fe06s4ak(v=vs.110).aspx

gnarlinsky commented 10 years ago

https://github.com/gnarlinsky/fab-lab-signin/wiki/Development:-Developing-on-Windows