//
// define('READONLY_START_FINISH', false);
+
// FUTURE_ENTRIES - defines whether users can create entries for future dates. Defaults to true.
//
// define('FUTURE_ENTRIES', false);
+// ALLOW_OVERLAP - defines whether overlapping time entries are allowed. Defaults to false.
+//
+// define('ALLOW_OVERLAP', true);
+
+
// WEEKEND_START_DAY
//
// This option defines which days are highlighted with weekend color.
$duration = ttTimeHelper::normalizeDuration($duration);
if (!$timestamp) {
- $timestamp = date('YmdHis');//yyyymmddhhmmss
+ $timestamp = date('YmdHis'); //yyyymmddhhmmss
+ // TODO: this timestamp could be illegal if we hit inside DST switch deadzone, such as '2016-03-13 02:30:00'
+ // Anything between 2am and 3am on DST introduction date will not work if we run on a system with DST on.
+ // We need to address this properly to avoid potential complications.
}
if (!$billable) $billable = 0;
// $finish - new record finish time, may be null
// $record_id - optional record id we may be editing, excluded from overlap set
static function overlaps($user_id, $date, $start, $finish, $record_id = null) {
+ // Do not bother checking if we allow overlaps.
+ if (defined('ALLOW_OVERLAP') && ALLOW_OVERLAP == true)
+ return false;
+
$mdb2 = getConnection();
$start = ttTimeHelper::to24HourFormat($start);
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.14.3412 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.15.3413 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>