添加日期格式初始化文件

This commit is contained in:
ccx1024cc 2016-12-16 14:14:50 +08:00
parent ff0324ef24
commit ba794c7657
1 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Time::DATE_FORMATS[:default] = '%Y-%m-%d %H:%M:%S'
Time::DATE_FORMATS[:full] = '%Y-%m-%d %H:%M:%S'
Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") }