mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
- correct datetime according to timezone in CSV export
This commit is contained in:
parent
7fe332b2b2
commit
7f27d206ba
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ function printCSV($listData, $data)
|
|||
{
|
||||
$s .= ($r['compl']?'1':'0'). ','. $r['prio']. ','. escape_csv($r['title']). ','.
|
||||
escape_csv($r['note']). ','. escape_csv($r['tags']). ','. $r['duedate'].
|
||||
','. gmdate('Y-m-d H:i:s O',$r['d_created']). ','. ($r['d_completed'] ? gmdate('Y-m-d H:i:s O',$r['d_completed']) :''). "\n";
|
||||
','. date('Y-m-d H:i:s O',$r['d_created']). ','. ($r['d_completed'] ? date('Y-m-d H:i:s O',$r['d_completed']) :''). "\n";
|
||||
}
|
||||
header('Content-type: text/csv');
|
||||
header('Content-disposition: attachment; filename=list_'.$listData['id'].'.csv');
|
||||
|
|
|
|||
Loading…
Reference in a new issue