developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 10 years ago

Closed 10 years ago

#1054 closed enhancement (fixed)

jDuration->days should be initialized

Reported by: teriiehina Owned by:
Priority: low Milestone: Jelix 1.1.6
Component: jelix:utils Version: 1.1.4
Severity: trivial Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

lib:jelix:utils:jDuration.class.php, line 67, when a jDuration object is constructed with a timestamp, only the seconds field is computed.There shouldn't be any harm by adding:

this->days = intval($init/86400); 

Change History (1)

Note: See TracTickets for help on using tickets.