%F is the same as %Y-%m-%d. There are differences between Windows and the other three (iOS, OS-X and Android) that are Unix/Linux based. os.date is a wrapper around the ‘C’ function strftime() and on Window’s this has to be hacked to deal with the fact that Windows handles dates/times differently than Unix does. This Stack Overflow post does a good job of explaining it:
I noticed that you mentioned about the Unix system in the blog post, but If I can add more explicit note about not working on Windows on that blog post (for future reference) would be great. (specially because it crashes the simulator, making it hard to identify the root cause of the problem).
Just another comment: on Windows Simulator the %z param would output the timezone name (as described in the docs) and not the timezone hours difference.
%F is the same as %Y-%m-%d. There are differences between Windows and the other three (iOS, OS-X and Android) that are Unix/Linux based. os.date is a wrapper around the ‘C’ function strftime() and on Window’s this has to be hacked to deal with the fact that Windows handles dates/times differently than Unix does. This Stack Overflow post does a good job of explaining it:
I noticed that you mentioned about the Unix system in the blog post, but If I can add more explicit note about not working on Windows on that blog post (for future reference) would be great. (specially because it crashes the simulator, making it hard to identify the root cause of the problem).
Just another comment: on Windows Simulator the %z param would output the timezone name (as described in the docs) and not the timezone hours difference.