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:
parent
eacf638709
commit
c5302dd6f7
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user