Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7411 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] Don't rely on format of Date#to_s

Reported by: mschoen Assigned to: core
Priority: normal Milestone: 1.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: date quoting
Cc:

Description

Currently AR relies on the default implementation of Date#to_s, whereas it uses the right strftime format for Time. The small patch attached removed that dependency, allowing folks to change the default format of to_s (for example, making it something useful for the UI).

Attachments

quoting.patch (1.0 kB) - added by mschoen on 01/28/07 06:53:36.

Change History

01/28/07 06:53:36 changed by mschoen

  • attachment quoting.patch added.

01/28/07 07:58:06 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [6061]) Use Date#to_s(:db) for quoted dates. Closes #7411.

01/28/07 07:58:58 changed by bitsweat

  • keywords set to date quoting.
  • milestone changed from 1.2 to 1.x.