X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/fceaaf9eb506890fbddbebede753be654fc6a6ad..23399ca5a40b47ff871252a623339757e1442a0f:/cookbooks/planet/files/default/replication-bin/replicate-changesets diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index 8c943902a..a5312e1e6 100644 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -142,7 +142,7 @@ end class Replicator def initialize(config) @config = YAML.safe_load(File.read(config)) - @state = YAML.safe_load(File.read(@config["state_file"])) + @state = YAML.safe_load(File.read(@config["state_file"]), [Time]) @conn = PGconn.connect(@config["db"]) # get current time from the database rather than the current system @now = @conn.exec("select now() as now").map { |row| Time.parse(row["now"]) }[0]