- Timestamp:
- 04/01/08 20:25:26 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/json/encoders/date.rb
r9093 r9203 6 6 # # => "2005/02/01" 7 7 def to_json(options = nil) 8 %("#{strftime("%Y/%m/%d")}") 8 if ActiveSupport.use_standard_json_time_format 9 %("#{strftime("%Y-%m-%d")}") 10 else 11 %("#{strftime("%Y/%m/%d")}") 12 end 9 13 end 10 14 end