1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-28 03:10:45 +00:00

Fix show commit timestamp bug

This commit is contained in:
plt 2012-01-30 18:14:05 +08:00
parent eacf638709
commit c5302dd6f7
2 changed files with 2 additions and 2 deletions

View File

@ -6,4 +6,4 @@ register = template.Library()
@register.filter(name='tsstr_sec')
def tsstr_sec(value):
"""Turn a timestamp to string"""
return datetime.utcfromtimestamp(value).strftime("%Y-%m-%d %H:%M:%S")
return datetime.fromtimestamp(value).strftime("%Y-%m-%d %H:%M:%S")

View File

@ -22,7 +22,7 @@ DATABASE_PORT = '' # Set to empty string for default. Not used with
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'
TIME_ZONE = 'Asia/Shanghai'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html