Commit 9fc8fc89 by liyijie

Add handle_format for string

parent 4fdeea2e
......@@ -174,6 +174,8 @@ module TalltyImportExport
# 根据数据类型 attr_type 进行数据的格式化
def handle_format data, header
case header[:attr_type].to_s
when 'string'
date.to_s
when 'datetime'
data ? data.strftime('%F %H:%M') : nil
when 'date'
......
module TalltyImportExport
VERSION = "1.0.9"
VERSION = "1.0.10"
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment