Class: Time
Overview
TODO: bug in Time::strftime
Instance Method Summary collapse
Instance Method Details
#old_strftime ⇒ Object
71 |
# File 'lib/unixcmd/aux.rb', line 71 alias_method :old_strftime, :strftime |
#strftime(format) ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/unixcmd/aux.rb', line 73 def strftime(format) if ENV['LANG'] == 'ru_RU.UTF-8' format = format.sub '%x', '%d.%m.%Y' end return old_strftime(format) end |