codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.38k stars 1.9k forks source link

Bug: results on getX() not equal #4452

Closed totoprayogo1916 closed 3 years ago

totoprayogo1916 commented 3 years ago

At the doc: https://codeigniter4.github.io/userguide/libraries/time.html#viewing-differences image

Describe the bug The result is not equal, one is positive value and the other is negative value

echo $diff->getSeconds();
// return: -220924800

echo $diff->seconds;
// return: 220924800

CodeIgniter 4 version v4.1.1

kenjis commented 3 years ago

I think the property value is a bug. The user guide is correct. See #4453