Show More
@@ -28,7 +28,7 b' import re' | |||||
28 | import shutil |
|
28 | import shutil | |
29 | import time |
|
29 | import time | |
30 | import traceback |
|
30 | import traceback | |
31 | from datetime import datetime |
|
31 | from datetime import datetime, timedelta | |
32 |
|
32 | |||
33 | from sqlalchemy.sql import func |
|
33 | from sqlalchemy.sql import func | |
34 | from sqlalchemy.sql.expression import true, or_ |
|
34 | from sqlalchemy.sql.expression import true, or_ | |
@@ -252,6 +252,9 b' class RepoModel(BaseModel):' | |||||
252 | short_name=not admin, admin=False) |
|
252 | short_name=not admin, admin=False) | |
253 |
|
253 | |||
254 | def last_change(last_change): |
|
254 | def last_change(last_change): | |
|
255 | if isinstance(last_change, datetime) and not last_change.tzinfo: | |||
|
256 | last_change = last_change + timedelta(seconds= | |||
|
257 | (datetime.now() - datetime.utcnow()).seconds) | |||
255 | return _render("last_change", last_change) |
|
258 | return _render("last_change", last_change) | |
256 |
|
259 | |||
257 | def rss_lnk(repo_name): |
|
260 | def rss_lnk(repo_name): |
General Comments 0
You need to be logged in to leave comments.
Login now