diff options
author | ʿAhed ʿid <Ahed91@users.noreply.github.com> | 2017-02-04 14:37:50 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-04 20:37:50 +0800 |
commit | 49fa03bf4286bd2cbf90b271fb65d4f70e5de57f (patch) | |
tree | 1f7ba2e5cafa11a9c369a73967da98875fd00d94 /cmd | |
parent | d0960b80354c0c8326063c8408d2274adb50dec1 (diff) | |
download | gitea-49fa03bf4286bd2cbf90b271fb65d4f70e5de57f.tar.gz gitea-49fa03bf4286bd2cbf90b271fb65d4f70e5de57f.zip |
Allow using custom time format (#798)
* Allow using custom time format
I need to use custom time format in `conf/app.ini' like
FORMAT = 2006-01-02 15:04:05
so that Gitea will display '2017-01-30 08:41:49'
check this answer for more constants to format date <http://stackoverflow.com/a/20234207/2570425>
PS: First GO commit
* Refactor and validate TimeFormat (must have 2006, 01, 02, 15, 04 and 05)
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions