[U] update timezone settings

[U] update office hour api respone data
[A] add timer template
This commit is contained in:
Ching 2019-06-21 18:07:39 +08:00
parent 97054f38fb
commit 82cb9a425a
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

View 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)