This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in Laravel 4 applications, based on Jalali (Shamsi) DateTime class. This Package is based on a Laravel 3 bundle "sallar/laravel-jdate" by Sallar Kaboli.
It seems you have just registered jDate class in the JalaliServiceProvider and jDateTime is not recognized in the application
I changed jDate to jDateTime and now can use conversion methods,
however I don't know how to register or use both classes
Hi!
whenever I tried to make use of "format" function, it throws error at: vendor/miladr/jalali/src/Miladr/Jalali/jDate.php at return code in :
...
// if valid unix timestamp...
if ($this->time !== false){
return jDateTime::strftime($str, $this->time);
}
else{
....
and it says: Class 'Miladr\Jalali\jDateTime' not found
example:
$date = jDate::forge('last sunday')->format('%B %d، %Y');
thank you
Thank you for providing this necessary package for Persian developers
I just had a request
the installation process needs composer update which may be time consuming for some machines.
could you please beside this installation method, offer another installation based on download, copy and configurations