Fix for bug #4155. Fix, data change only for admin.
This commit is contained in:
parent
5239136f5b
commit
8905708fe6
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ class RepoModel(BaseModel):
|
|||
short_name=not admin, admin=False)
|
||||
|
||||
def last_change(last_change):
|
||||
if isinstance(last_change, datetime) and not last_change.tzinfo:
|
||||
if admin and isinstance(last_change, datetime) and not last_change.tzinfo:
|
||||
last_change = last_change + timedelta(seconds=
|
||||
(datetime.now() - datetime.utcnow()).seconds)
|
||||
return _render("last_change", last_change)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue