[U] update timezone settings
[U] update office hour api respone data [A] add timer template
This commit is contained in:
parent
97054f38fb
commit
82cb9a425a
@ -111,9 +111,8 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/1.11/topics/i18n/
|
||||
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
|
||||
TIME_ZONE = 'UTC'
|
||||
TIME_ZONE = 'Asia/Shanghai'
|
||||
LANGUAGE_CODE = 'zh-hans'
|
||||
|
||||
USE_I18N = True
|
||||
|
||||
|
||||
0
timer/templates/index.html
Normal file
0
timer/templates/index.html
Normal file
@ -61,7 +61,7 @@ class OfficeHoursAPI(CreateAPIView):
|
||||
|
||||
resp_data = {
|
||||
'begins_at': begins_at.strftime('%Y-%m-%d %H:%M'),
|
||||
'ends_at': ends_at.strftime('%Y-%m-%d %H:%M'),
|
||||
'ends_at': ends_at.strftime('%H:%M'),
|
||||
}
|
||||
|
||||
return Response(resp_data, status=status.HTTP_201_CREATED)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user