Skip to content

Commit

Permalink
Default to UTC if no time zone specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jun 29, 2018
1 parent 87c2a3c commit 0314053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/time/zone/timestamp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def self.parse(*args)
self.from(*Zone.parse(*args))
end

def initialize(year, month, day, hour, minute, second, zone)
def initialize(year, month, day, hour, minute, second, zone = "UTC")
@year = year
@month = month
@day = day
Expand Down

0 comments on commit 0314053

Please sign in to comment.