Torann / laravel-currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.
http://lyften.com/projects/laravel-currency
BSD 2-Clause "Simplified" License
395 stars 136 forks source link

php artisan currency:update => Exception #87

Closed hvervest closed 7 years ago

hvervest commented 7 years ago

php artisan currency:update leads to an exception: exception.log

Updating currency exchange rates from OpenExchangeRates.org...

[Exception]
DateTime::__construct(): Failed to parse time string (-49454009348) at position 10 (4): Unexpected character

nullifiedaccount3 commented 7 years ago

@aemr3 how do we use this as a composer package?

aemr3 commented 7 years ago

Hi @bhargav3, I will not publish it. Because I think repository owner @Torann will merge the changes. But for now you can add these lines to your composer.json file in order to get the fix;

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/aemr3/laravel-currency"
    }
],

and run composer require torann/currency dev-master

Torann commented 7 years ago

Just released a patch for this

hvervest commented 7 years ago

thank you