forked from GithubBackups/healthchecks
Fix a "invalid time format" in front.views.status_single on Windows hosts. Fixes #224
This commit is contained in:
parent
290d46bc2a
commit
100bc3c5e7
@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
- Fix refreshing of the checks page filtered by tags (#221)
|
- Fix refreshing of the checks page filtered by tags (#221)
|
||||||
- Escape asterisks in Slack messages (#223)
|
- Escape asterisks in Slack messages (#223)
|
||||||
|
- Fix a "invalid time format" in front.views.status_single on Windows hosts
|
||||||
|
|
||||||
|
|
||||||
## 1.5.0 - 2019-02-04
|
## 1.5.0 - 2019-02-04
|
||||||
|
@ -29,7 +29,7 @@ class StatusSingleTestCase(BaseTestCase):
|
|||||||
doc = r.json()
|
doc = r.json()
|
||||||
|
|
||||||
self.assertEqual(doc["status"], "up")
|
self.assertEqual(doc["status"], "up")
|
||||||
self.assertEqual(doc["updated"], p.created.strftime("%s.%f"))
|
self.assertEqual(doc["updated"], str(p.created.timestamp()))
|
||||||
self.assertTrue("test-user-agent" in doc["events"])
|
self.assertTrue("test-user-agent" in doc["events"])
|
||||||
|
|
||||||
def test_it_omits_events(self):
|
def test_it_omits_events(self):
|
||||||
|
@ -494,7 +494,7 @@ def status_single(request, code):
|
|||||||
events = _get_events(check, 20)
|
events = _get_events(check, 20)
|
||||||
updated = "1"
|
updated = "1"
|
||||||
if len(events):
|
if len(events):
|
||||||
updated = events[0].created.strftime("%s.%f")
|
updated = str(events[0].created.timestamp())
|
||||||
|
|
||||||
doc = {
|
doc = {
|
||||||
"status": status,
|
"status": status,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user