Fix ad image date selector

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-04-23 18:20:12 +08:00
1 parent 35452c039d
commit a5db2382e7
4 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -28,12 +28,12 @@ class AdImage
attr_reader :parse_post_date,:parse_unpost_date
def parse_post_date=(att)
self.post_date = (Date.parse att rescue nil)
self.post_date = (Date.parse att.gsub(/\s+/, "") rescue nil)
end
def parse_unpost_date=(att)
self.unpost_date = (Date.parse att rescue nil)
self.unpost_date = (Date.parse att.gsub(/\s+/, "") rescue nil)
end
def display?