Indefero

Indefero Commit Details


Date:2012-04-26 10:22:11 (12 years 7 months ago)
Author:Simon Holywell
Branch:develop
Commit:fde3a0a9495699539aa51f6464986f4532497b08
Parents: 2bd2b3a463e6df63de5c95ad38c0a6e808f38b84
Message:Date validation in the Issue model

Changes:

File differences

src/IDF/Issue.php
161161
162162
163163
164
165
166
167
168
164
165
166
169167
170168
171169
if ($this->id == '') {
$this->creation_dtime = gmdate('Y-m-d H:i:s');
}
if($this->due_dtime and !empty($this->due_dtime)) {
$datetime = $this->due_dtime . ' 23:59:59';
if(date('Y-m-d', strtotime($datetime)) === $this->due_dtime) {
$this->due_dtime = $datetime;
}
if ($this->due_dtime and !empty($this->due_dtime)) {
$this->due_dtime = date('Y-m-d 23:59:59',
strtotime($this->due_dtime));
}
$this->modif_dtime = gmdate('Y-m-d H:i:s');
}

Archive Download the corresponding diff file

Page rendered in 0.07541s using 13 queries.