Skip to content

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

@rcweb2

Description

@rcweb2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions