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