Closed
Description
Describe the bug
Was looking at this issue
#1807
when I tried to test his samples, I then looked at docs on how to load the class
https://codeigniter4.github.io/CodeIgniter4/libraries/time.html?highlight=settimezone
But instead I got the error
Class 'Locale' not found
Checked the source and there is nothing named Locale file or Text wise for a class
IncomingRequest has this logic in there code, but Time.php uses it directly
if (class_exists('\Locale', false))
{
\Locale::setDefault($locale);
}
A clear and concise description of what the bug is.
CodeIgniter 4 version
4.0.3
Affected module(s)
Time.php , part of CodeIgniter\I18n
Expected behavior, and steps to reproduce if appropriate
Should load the file
Activity