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

Arabic Translations not work when convert from Hijri date to Gregorian Date #23

Open
rcweb2 opened this issue Jun 14, 2023 · 0 comments

Comments

@rcweb2
Copy link

rcweb2 commented Jun 14, 2023

Arabic Translations not work when convert from Hijri date to Gregorian Date.

require DIR . '/vendor/autoload.php';

use GeniusTS\HijriDate\Date;

use GeniusTS\HijriDate\Translations\Arabic;

\GeniusTS\HijriDate\Date::setTranslation(new Arabic);

Date::setDefaultNumbers(Date::INDIAN_NUMBERS);

//$date = \GeniusTS\HijriDate\Hijri::convertToGregorian(05,07,1390);

only work with class function :
now();
today();
tomorrow();
yesterday();

Also, there is difficulty in writing dates as a variable.

thanks for any help.

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

1 participant