change shorthand values to current timezone (thanks rpbertp13)

This commit is contained in:
Adam Meehan
2010-10-11 13:12:16 +11:00
parent 6301d87829
commit 3f72f31063
3 changed files with 5 additions and 5 deletions

View File

@@ -35,8 +35,8 @@ module ValidatesTimeliness
# Shorthand time and date symbols for restrictions
mattr_accessor :restriction_shorthand_symbols
@@restriction_shorthand_symbols = {
:now => lambda { Time.now },
:today => lambda { Date.today }
:now => lambda { Time.current },
:today => lambda { Date.current }
}
def self.parser