Skip to content

Commit

Permalink
sharding: fix wrong year width
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 6, 2017
1 parent dbefb40 commit 3c06f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/sharding/logical_enumerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def initialize(year, month, day)

def to_suffix
if @day.nil?
"_%02d%02d" % [@year, @month]
"_%04d%02d" % [@year, @month]
else
"_%02d%02d%02d" % [@year, @month, @day]
"_%04d%02d%02d" % [@year, @month, @day]
end
end
end
Expand Down

0 comments on commit 3c06f84

Please sign in to comment.