0
@@ -6,16 +6,16 @@ class Chronic::RepeaterYear < Chronic::Repeater #:nodoc:
0
if !@current_year_start
0
- @current_year_start = Time.
local(@now.year + 1)
0
+ @current_year_start = Time.
construct(@now.year + 1)
0
- @current_year_start = Time.
local(@now.year - 1)
0
+ @current_year_start = Time.
construct(@now.year - 1)
0
diff = pointer == :future ? 1 : -1
0
- @current_year_start = Time.
local(@current_year_start.year + diff)
0
+ @current_year_start = Time.
construct(@current_year_start.year + diff)
0
- Chronic::Span.new(@current_year_start, Time.
local(@current_year_start.year + 1))
0
+ Chronic::Span.new(@current_year_start, Time.
construct(@current_year_start.year + 1))
0
def this(pointer = :future)
0
@@ -23,14 +23,14 @@ class Chronic::RepeaterYear < Chronic::Repeater #:nodoc:
0
- this_year_start = Time.local(@now.year, @now.month, @now.day) + Chronic::RepeaterDay::DAY_SECONDS
0
- this_year_end = Time.local(@now.year + 1, 1, 1)
0
+ this_year_start = Time.construct(@now.year, @now.month, @now.day) + Chronic::RepeaterDay::DAY_SECONDS
0
+ this_year_end = Time.construct(@now.year + 1, 1, 1)
0
- this_year_start = Time.local(@now.year, 1, 1)
0
- this_year_end = Time.local(@now.year, @now.month, @now.day)
0
+ this_year_start = Time.construct(@now.year, 1, 1)
0
+ this_year_end = Time.construct(@now.year, @now.month, @now.day)
0
- this_year_start = Time.local(@now.year, 1, 1)
0
- this_year_end = Time.local(@now.year + 1, 1, 1)
0
+ this_year_start = Time.construct(@now.year, 1, 1)
0
+ this_year_end = Time.construct(@now.year + 1, 1, 1)
0
Chronic::Span.new(this_year_start, this_year_end)
0
@@ -40,10 +40,10 @@ class Chronic::RepeaterYear < Chronic::Repeater #:nodoc:
0
direction = pointer == :future ? 1 : -1
0
- new_begin = Time.
local(sb.year + (amount * direction), sb.month, sb.day, sb.hour, sb.min, sb.sec)
0
+ new_begin = Time.
construct(sb.year + (amount * direction), sb.month, sb.day, sb.hour, sb.min, sb.sec)
0
- new_end = Time.
local(se.year + (amount * direction), se.month, se.day, se.hour, se.min, se.sec)
0
+ new_end = Time.
construct(se.year + (amount * direction), se.month, se.day, se.hour, se.min, se.sec)
0
Chronic::Span.new(new_begin, new_end)