utils.strftime does not format the year properly
See original GitHub issue4Y
is set as the date
>>> now = pytz.utc.localize(datetime.utcnow())
>>> now
datetime.datetime(2017, 12, 2, 19, 58, 13, 276787, tzinfo=<UTC>)
>>> utils.strftime(now)
'4Y-12-02T19:58:13.276787Z'
Looks like this was introduced by https://github.com/singer-io/singer-python/pull/52
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
(django) strftime format does not work properly, different ...
You need to set a timezone-aware datetime as the pub_date when you create a new ArticleComments instance. from django.utils import timezone ...
Read more >datetime — Basic date and time types — Python 3.11.1 ...
Return a string representing the date, controlled by an explicit format string. Format codes referring to hours, minutes or seconds will see 0...
Read more >Python Examples of singer.utils.strftime - ProgramCreek.com
The following are 18 code examples of singer.utils.strftime(). ... val.year == 0: # NB: Since datetimes are persisted as strings, it doesn't #...
Read more >strptime: Date-time Conversion Functions to and from Character
Any character in the format string not part of a conversion specification is ... will probably not print years before 1 CE (aka...
Read more >12261 (strftime function from django.utils.datetime_safe doesn ...
However the function strftime doesn't handle properly the option "%Y" in years below 1000: instead to fill with zeros (0) until to complete...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @bondgeek, I think we are going to change singer-python’s strftime() to do something similar to what was done in this pull request.
I will link the change here once it happens to keep anyone following this thread in the loop.
I’m running
tap-onfleet --config config.json --catalog catalog.json
but getting an unknown string format for my system timeCan someone please help?