diff options
author | Matthieu Aubry <matt@piwik.org> | 2015-10-30 02:42:52 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2015-10-30 02:42:52 +0300 |
commit | fe36f931407ba99f3f8f708143e283f6846bb2f7 (patch) | |
tree | 155a0c9afc0cfddd98eddabe00024ac955ea15b0 /core/Period.php | |
parent | 2de7fef4d2176dc435a7dd9c1932b7cf6fdcf77c (diff) | |
parent | c485c086be538e87ba92f26c1f3edd585c55bd46 (diff) |
Merge pull request #9093 from piwik/timeformats
Allow user to change time formats (12/24-hour clock)
Diffstat (limited to 'core/Period.php')
-rw-r--r-- | core/Period.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/Period.php b/core/Period.php index 70a47d2905..aecf6362bf 100644 --- a/core/Period.php +++ b/core/Period.php @@ -371,12 +371,9 @@ abstract class Period $maxDifference = 'M'; } - return $this->translator->translate( - sprintf( - 'Intl_Format_Interval_%s_%s', - $short ? 'Short' : 'Long', - $maxDifference - )); + $dateTimeFormatProvider = StaticContainer::get('Piwik\Intl\Data\Provider\DateTimeFormatProvider'); + + return $dateTimeFormatProvider->getRangeFormatPattern($short, $maxDifference); } /** |