mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-24 22:45:56 +03:00
[PR #125] [MERGED] Return consistent date formats in API #897
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#897
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/healthchecks/healthchecks/pull/125
Author: @prgTW
Created: 6/28/2017
Status: ✅ Merged
Merged: 6/29/2017
Merged by: @cuu508
Base:
master← Head:patch-1📝 Commits (1)
27f917cReturn consistent date formats in API📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
hc/api/models.py(+2 -2)📄 Description
datetime.isoformatreturns different date formats whether microseconds part equals 0 or not.ref: https://docs.python.org/2/library/datetime.html#datetime.datetime.isoformat
datetime.isoformatfunction is used in the API and thus producing inconsistency in the API.Tests assume the microseconds equals 0 so let's skip microseconds part from the API as well
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.