From 8ab6e5af50b024dc9c63d92126232d7106cce1b9 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Mon, 23 Nov 2020 17:15:12 +0100 Subject: [PATCH] Updates to current Crystal APIs. --- src/main.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cr b/src/main.cr index f8e5632..801443f 100644 --- a/src/main.cr +++ b/src/main.cr @@ -34,7 +34,7 @@ class Storage end def store(project, environment, revision, content) - date = Time.now.to_unix + date = Time.utc.to_unix file_path = "#{@root}/#{project}/#{environment}/#{date}##{revision}.tap" Dir.mkdir_p File.dirname file_path File.write file_path, content