File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22import os
33import json
44import time
5+ import pytz
56import hashlib
67import logging
78import pathlib
@@ -178,7 +179,7 @@ def get_dev_version(self, branch: str) -> Version:
178179 return Version (
179180 version = last_commit .sha [:8 ],
180181 changelog = changelog ,
181- timestamp = int (last_commit .commit .author .date .timestamp ()),
182+ timestamp = int (pytz . utc . localize ( last_commit .commit .author .date ) .timestamp ()),
182183 )
183184 except Exception as e :
184185 logging .exception (e )
@@ -194,7 +195,7 @@ def get_release_version(self) -> Version:
194195 return Version (
195196 version = last_release .title ,
196197 changelog = last_release .body .split ("## 🚀 Changelog" , 1 )[- 1 ].lstrip (),
197- timestamp = int (last_release .created_at .timestamp ()),
198+ timestamp = int (pytz . utc . localize ( last_release .published_at ) .timestamp ()),
198199 )
199200 except StopIteration :
200201 return None
You can’t perform that action at this time.
0 commit comments