Closed ArtyshkoAndrey closed 6 months ago
Hello,
I can't reproduce here, it does not fail neither in unit tests.
Do you reproduce if you create a file with only this:
<?php
require __DIR__ . '/vendor/autoload.php';
echo \Carbon\Carbon::now()->addRealSeconds(90)->getTimestamp();
And no code executed before? I suspect you might have something such as Carbon::setTestNow('1970-01-01 00:0 UTC')
in such case, then 90
would be the expected output.
But in version 3.0 methods has work correct. Sorry my English. In version 3.0 method return real timestamp, but 3.1 return int or string non-timestamp
After run addRealSeconds, timestamp not correct
Sorry. True, in version 3.1 and higher the script works correctly. Apparently there are problems in Laravel ^11.0
Hello, pls fixx >addRealSeconds method
I encountered an issue with the following code:
Carbon version: 3.1.1 PHP version: 8.3
I expected to get:
Thanks!