49dbcb8c91e72c4482dd23fd42cb07cd2cd2ae27
ChronosTime::parseString() passed the fractional-seconds digits straight to (int), so a short fraction such as .5 was read as 5 microseconds instead of 500000 (half a second), diverging from DateTime. Right-pad the fractional digits to microseconds before converting.
Description
My contributions to cakephp/chronos: 2 commits, 1 merged PRs
43 KiB
0 Stars
1 Watchers
0 Forks
Languages
PHP
100%