08305c1b956f0f50890fdd923a49965b5d325cdc
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%