]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/Period.class.php
Reviewed Greek file a bit more and put some TODOs in it.
[timetracker.git] / WEB-INF / lib / Period.class.php
index 5730a75d04d47722c132dd4fa7d8eb45d82c5cf4..0e901a8d6ebf5151e888f84cef3794b0605e926f 100644 (file)
@@ -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) {