module ActiveSupport
class TimeWithZone
def as_json(options = nil)
if ActiveSupport::JSON::Encoding.use_standard_json_time_format
xmlschema
else
#%(#{time.strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)})
%(#{time.strftime("%Y-%m-%d %H:%M:%S")})
end
end
end
end
现在可以改成%F %T了..
You need to Sign in before reply, if you don't have an account, please Sign up first.