Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing strftime format string #63

Merged
merged 2 commits into from
Dec 15, 2017
Merged

changing strftime format string #63

merged 2 commits into from
Dec 15, 2017

Conversation

nick-mccoy
Copy link
Contributor

@nick-mccoy nick-mccoy commented Dec 14, 2017

In response to this issue #59

Some C Libraries version of strftime() recognize a field width modifier in the format string, e.g. the 04 in %04Y-%m-%dT%H:%M:%S.%fZ which specifies the width of the year field.

We added this 04 to our date format to ensure that dates with years < 1000 still have a 4 digit year.

However, other C Libraries do not recognize this field width modifier, but zero pad dates with years < 1000 to ensure they are 4 digits long.

To remedy this inconsistency, the 04 is being removed from the date format string, and an optional argument is being added to singer.utils.strftime() so callers of that function can supply their own date format string.

@nick-mccoy nick-mccoy merged commit 16b53f3 into master Dec 15, 2017
@nick-mccoy nick-mccoy deleted the fix_strftime_format branch December 15, 2017 15:01
@nick-mccoy
Copy link
Contributor Author

This change had to be reverted, and was done so in #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant