X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/988dcb3947c5e0d347f1002dbee2ff5c5c56e1db..a2cf5ce7f9c827da299ef19e3fa56030f8cdbf79:/WEB-INF/lib/Period.class.php diff --git a/WEB-INF/lib/Period.class.php b/WEB-INF/lib/Period.class.php index 5730a75d..0e901a8d 100644 --- a/WEB-INF/lib/Period.class.php +++ b/WEB-INF/lib/Period.class.php @@ -52,9 +52,14 @@ define('INTERVAL_PREVIOUS_DAY', 44); define('INTERVAL_SELECTED_DAY', 48); */ +// TODO: Refactoring is needed for this class. Probably by refactoring DateAndTime first, as Period is +// basically a collection of 2 DateAndTime instances. +// +// Second problem is that "today" is (most likely?) server today, so reports may give incorrect dates +// for browser users in different time zones. Verify and fix this. class Period { - var $startDate; - var $endDate; + var $startDate; // DateAndTime object. + var $endDate; // DateAndTime object. function __construct($period_type = 0, $date_point = null) {