SyntaxFix
Write A Post
Hire A Developer
Questions
Try converting the entry to a string first. As long as the database column type is a date it will be formated as a date.
self.date || self.exif_date_time_original.to_s