Fix warnings in Crystal 0.29

This commit is contained in:
Omar Roth
2019-06-07 20:23:37 -05:00
parent 58995bb3a2
commit 2febc268f7
8 changed files with 24 additions and 23 deletions

View File

@@ -973,7 +973,7 @@ def extract_polymer_config(body, html)
if published
params["published"] = Time.parse(published, "%b %-d, %Y", Time::Location.local).to_unix.to_s
else
params["published"] = Time.new(1990, 1, 1).to_unix.to_s
params["published"] = Time.utc(1990, 1, 1).to_unix.to_s
end
params["description_html"] = "<p></p>"