> You may consider using a real "Date" object to store a date ... > >> require 'date' >> Date.today.to_s #=> "2012-02-15" > > I made the mistake once to use Time (DateTime actually) to store a real > "date" > and it continued to create difficulties with different timezones etc. > (not > because > of the language, but because of the "real life" issue that a contract > starts at a > certain _date_ and this is in reality a different time depending on the > Time Zone). > > If you still can change it to a real date format in the database column, > consider it > seriously.
Well then you really suggest that I change the datetime format for a date format to deal with this issue? The time is used for knowing exactly when the transaction was made and we really need this information... but for purposes of searching and retrieving the information of the db may be I can create a new date field hmmm -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

