You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
73 * @param string|null $locale
74 *
75 * @throws Exception
76 */
77 public function __construct(string $time = null, $timezone = null, string $locale = null)
78 {
79 // If no locale was provided, grab it from Locale (set by IncomingRequest for web requests)
80 $this->locale = ! empty($locale) ? $locale : Locale::getDefault();
81
82 // If a test instance has been provided, use it instead.
83 if (is_null($time) && static::$testNow instanceof Time)
84 {
85 if (empty($timezone))
86 {
87 $timezone = static::$testNow->getTimezone();
The text was updated successfully, but these errors were encountered:
bi2b
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Jun 5, 2021
i got this error.
Error
Class 'Locale' not found search →
SYSTEMPATH/I18n/Time.php at line 80
73 * @param string|null $locale
74 *
75 * @throws Exception
76 */
77 public function __construct(string $time = null, $timezone = null, string $locale = null)
78 {
79 // If no locale was provided, grab it from Locale (set by IncomingRequest for web requests)
80 $this->locale = ! empty($locale) ? $locale : Locale::getDefault();
81
82 // If a test instance has been provided, use it instead.
83 if (is_null($time) && static::$testNow instanceof Time)
84 {
85 if (empty($timezone))
86 {
87 $timezone = static::$testNow->getTimezone();
The text was updated successfully, but these errors were encountered: