Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/compiler/crystal/config.cr
Original file line number Diff line number Diff line change
@@ -30,14 +30,8 @@ module Crystal
{tag, sha}
end

def self.full_date
{{ `date -u`.stringify.chomp }}
end

def self.date
string = full_date
time = Time.parse(string, "%a %b %d %H:%M:%S UTC %Y")
time.to_s("%Y-%m-%d")
{{ `date "+%Y-%m-%d"`.stringify.chomp }}
end
end
end

0 comments on commit 68ba0f6

Please sign in to comment.