Skip to content

Accept timestamps with seconds having less than 6 decimals#5417

Merged
wardi merged 2 commits into
ckan:masterfrom
HoussamBedja:5416-allow-date-parsing-with-more-date-formats
Jun 4, 2020
Merged

Accept timestamps with seconds having less than 6 decimals#5417
wardi merged 2 commits into
ckan:masterfrom
HoussamBedja:5416-allow-date-parsing-with-more-date-formats

Conversation

@HoussamBedja

Copy link
Copy Markdown
Contributor

Fixes #5416

Proposed fixes:

Allow the date_str_to_datetime helper function to accept dates that have more or less precision than 6 digits for the seconds decimals (for example 3 digits for milliseconds) and convert the value to 6 digit microseconds.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

@wardi wardi merged commit 2f73f1e into ckan:master Jun 4, 2020
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.

Parsing dates with strict date formats

2 participants