array("\r\n", "\r", "\n"), array("\n", "\n", PHP_EOL), $description)));
fputs($file, $description.PHP_EOL);
fclose($file);
+ $updated = DateTime::createFromFormat(
+ 'm/d/Y h:i a', // 01/03/2013 05:56 am
+ $csv->getNamed('Updated'),
+ new DateTimeZone('Europe/Berlin'))->getTimestamp();
+ touch($filename, $updated);
}
$dir = dirname(dirname(__FILE__)).'/issues';
'm/d/Y h:i a', // 01/03/2013 05:56 am
$csv->getNamed('Updated'),
new DateTimeZone('Europe/Berlin'))->getTimestamp();
- if ($updated > ($modified - 60)) {
+ if ($updated > $modified) {
echo 'updating: ', $filename, PHP_EOL;
writeTicket($csv, $filepath);
}