Skip to content

Commit d9cde3c

Browse files
committed
fix: use unix timestamp
1 parent e36f467 commit d9cde3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pokemon_v2/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ def list(self, request):
10911091
try:
10921092
deploy_date = (
10931093
subprocess.check_output(
1094-
["git", "log", "-1", "--format=%cI"], stderr=subprocess.DEVNULL
1094+
["git", "log", "-1", "--format=%ct"], stderr=subprocess.DEVNULL
10951095
)
10961096
.decode()
10971097
.strip()

pokemon_v2/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5862,6 +5862,6 @@ def test_meta_api(self):
58625862
response = self.client.get("{}/meta/".format(API_V2))
58635863
self.assertEqual(response.status_code, status.HTTP_200_OK)
58645864
self.assertTrue(datetime.fromisoformat(response.data["deploy_date"]))
5865-
self.assertEqual(25, len(response.data["deploy_date"]))
5865+
self.assertEqual(10, len(response.data["deploy_date"]))
58665866
self.assertEqual(40, len(response.data["hash"]))
58675867
self.assertIn("tag", response.data)

0 commit comments

Comments
 (0)