From 288c9e78bcdef3461c6082abbf592f574c232838 Mon Sep 17 00:00:00 2001 From: austincgt Date: Fri, 30 Dec 2011 12:13:58 -0800 Subject: [PATCH] 'TH' was missing from the options in wkst_day which would alos throw off the index for 'FR' and 'SA'. --- lib/ri_cal/property_value/recurrence_rule.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ri_cal/property_value/recurrence_rule.rb b/lib/ri_cal/property_value/recurrence_rule.rb index e4dbae8d..9c164e03 100644 --- a/lib/ri_cal/property_value/recurrence_rule.rb +++ b/lib/ri_cal/property_value/recurrence_rule.rb @@ -76,7 +76,7 @@ def wkst end def wkst_day # :nodoc: - @wkst_day ||= (%w{SU MO TU WE FR SA}.index(wkst) || 1) + @wkst_day ||= (%w{SU MO TU WE TH FR SA}.index(wkst) || 1) end # Set the starting week day for the recurrence rule, which should be one of