Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't assume the relative_to date will be a time instance

  • Loading branch information...
commit 0f0f3fd024bf5a3a846e999b845803ae61d870c0 1 parent bb40a2c
@jamis jamis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tasks/snapshot.rake
View
2  lib/tasks/snapshot.rake
@@ -105,7 +105,7 @@ DESC
# load the data
data = YAML.load_file(from)
- relative_to = data[:now]
+ relative_to = Time.parse(data[:now].to_s)
now = (ENV['NOW'] && Time.parse(ENV['NOW'])) || Time.now.utc
today = now.to_date
Please sign in to comment.
Something went wrong with that request. Please try again.