1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/logger.rb: leading 0 padding of timestamp usec part.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2004-01-30 16:10:36 +00:00
parent b685848c66
commit 06a45a663c
3 changed files with 8 additions and 4 deletions

View file

@ -427,7 +427,7 @@ private
def format_datetime(datetime)
if @datetime_format.nil?
datetime.strftime("%Y-%m-%dT%H:%M:%S.") << "%6d " % datetime.usec
datetime.strftime("%Y-%m-%dT%H:%M:%S.") << "%06d " % datetime.usec
else
datetime.strftime(@datetime_format)
end