Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Sep 15, 2016
1 parent 0eda034 commit 0a5809c
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions lib/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,7 @@ protected function format_standalone_month(DateTimeAccessor $datetime, $length)
case 5: return $this->calendar->standalone_narrow_months[$month];
}

return $this->calendar->locale->context_transform(
$str,
ContextTransforms::USAGE_MONTH_FORMAT_EXCEPT_NARROW,
ContextTransforms::TYPE_STAND_ALONE
);
return $str;
}

/*
Expand Down Expand Up @@ -645,19 +641,8 @@ protected function format_day_in_week_stand_alone(DateTimeAccessor $datetime, $l
}

$code = $this->resolve_day_code($day);
$calendar = $this->calendar;
$str = $calendar->{ 'standalone_' . $mapping[$length] . '_days' }[$code];

if ($length != 5)
{
return $calendar->locale->context_transform(
$str,
ContextTransforms::USAGE_DAY_STANDALONE_EXCEPT_NARROW,
ContextTransforms::TYPE_STAND_ALONE
);
}

return $str;
return $this->calendar->{ 'standalone_' . $mapping[$length] . '_days' }[$code];
}

/**
Expand Down

0 comments on commit 0a5809c

Please sign in to comment.