##// END OF EJS Templates
Fix for bug #4155. Fix, data change only for admin.
Bartłomiej Wołyńczyk -
r1449:1b70f889 default
parent child Browse files
Show More
@@ -252,7 +252,7 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:
255 if admin and isinstance(last_change, datetime) and not last_change.tzinfo:
256 last_change = last_change + timedelta(seconds=
256 last_change = last_change + timedelta(seconds=
257 (datetime.now() - datetime.utcnow()).seconds)
257 (datetime.now() - datetime.utcnow()).seconds)
258 return _render("last_change", last_change)
258 return _render("last_change", last_change)
General Comments 0
You need to be logged in to leave comments. Login now