Carbon, management of timestamp in Symfony 4?

The fact that library to work with dates only compatible with symfony/translation to 3.0, and the 4th Symphony is only needed symfony/translation 4.0+

How to fix it, is there a substitute, or wait for the carbon fiber correct?

I always have previously used this library, very convenient to plant in the field createdAt object Carbon::now(). How to write date(time()...) and write it as a normal string (11-12-2015 05:14:22). And to convert and work with dates more difficult then.
June 10th 19 at 16:36
1 answer
June 10th 19 at 16:38
Solution
To subscribe to this issue: https://github.com/briannesbitt/Carbon/issues/1049 and wait for the hotfix.
PR is already there: https://github.com/briannesbitt/Carbon/pull/1028

If you really urgently need, you can use this version (from PR) https://github.com/GawainLynch/Carbon/tree/symfony-4
Thank you, this is my issue, if that)

I can then replace the original Carbon?
If you put
https://github.com/GawainLynch/Carbon/tree/symfony-4 - jaycee commented on June 10th 19 at 16:41
Yes, there should be a repository in composer.json to prescribe. Therefore it will be necessary to remove

https://stackoverflow.com/a/13500676 - Candace_Bogisich commented on June 10th 19 at 16:44
Please tell me one more thing, what do you mean by PR? And how to deliver the package from this branch https://github.com/GawainLynch/Carbon/tree/symfony-4с

"nesbot/carbon": "dev-symfony-4"
...
 "repositories": [
{
 "type": "vcs",
 "url": "https://github.com/GawainLynch/Carbon.git"
}
 ],


Issues:
composer update
Loading composer repositories with package information
Reading composer.json of nesbot/carbon (symfony 4)
Could not fetch <a href="https://api.github.com/repos/GawainLynch/Carbon/commits/23d299fdc24e8e7ff7f239846a9f8398ffb5a263,">https://api.github.com/repos/GawainLynch/Carbon/commits/23d299fdc24e8e7ff7f239846a9f8398ffb5a263,</a> please create a GitHub OAuth token to go over the API rate limit
Head to <a href="https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-DOK1CL5+2017-12-09+1557">https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-DOK1CL5+2017-12-09+1557</a>
to retrieve a token. It will be stored in "C:/Users/BonBon/AppData/Roaming/Composer/auth.json" for future use by the Composer.
Token (hidden):
- jaycee commented on June 10th 19 at 16:47
well it says "please create a GitHub OAuth token to go over the API rate limit" - Candace_Bogisich commented on June 10th 19 at 16:50

Find more questions by tags Symfony