Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyforge/client.rb

Overview

clean up warnings caused by web servers that send down 2 digit years

Constant Summary collapse

CENTURY =
Time.now.year / 100 * 100

Class Method Summary collapse

Class Method Details

.old_utcObject



10
11
12
13
# File 'lib/rubyforge/client.rb', line 10

def utc(*args)
  args[0] += CENTURY if args[0] < 100
  old_utc(*args)
end

.utc(*args) ⇒ Object



12
13
14
15
# File 'lib/rubyforge/client.rb', line 12

def utc(*args)
  args[0] += CENTURY if args[0] < 100
  old_utc(*args)
end