Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class Locale not found when using I18n/Time on xampp localhost #1059

Closed
godguide1 opened this issue Jun 1, 2018 · 2 comments
Closed

class Locale not found when using I18n/Time on xampp localhost #1059

godguide1 opened this issue Jun 1, 2018 · 2 comments

Comments

@godguide1
Copy link

I am trying to add days to a time parsed date by doing

<?php namespace App\Libraries;

    use CodeIgniter\Libraries;
    use CodeIgniter\I18n\Time;

    class Book
    {
          public function getTime()
          {
               $time = Time::parse('June 1, 2018', 'Australia/Sydney');
               $time = $time->addDays(7);
               return $time;
          }
     }

In attempt to getTime() am having class Locale not found Error; Please what do i need to set or tweak to get this working. Thanks.

@InsiteFX
Copy link
Contributor

InsiteFX commented Jun 2, 2018

This should be posted in the CI 4 Forums!

$myTime = new Time('now');

@jim-parry
Copy link
Contributor

Agreed - questions like this should be raised on our forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants