Format date in file snippet
When using :
%(created|date)s
I get
"2024-09-23"
when instead use:
%(created|datetime)s
I get
09/23/24 16:15:33
How can I get rid of the quotation marks in the "date" example above?
Comments
Do you have an environment variable __DATE_FORMAT__ defined? If so, it may be that it contains the quotes. The default if this env is not set is to use %x, and in any case we're calling time.strftime() with that format, so time.strftime('%x') by default. I did just test this here and works (no quotes added) with Wing 10.0.6 using %(created|date)s. It vaguely sounds like a bug we once fixed, but I didn't find it in the changes for anything since Wing 7 so my memory of that may be from a long time ago.