Fix issue in date

This commit is contained in:
Léo Serre 2018-06-27 20:37:26 +02:00
父節點 4e6c027acb
當前提交 314da54b69
共有 1 個文件被更改,包括 1 次插入1 次删除

查看文件

@ -7,7 +7,7 @@
</head>
<?php if( isset($_POST['button']) ) {
if( $_POST['lat'] != 0 && $_POST['lon'] != 0)
file_put_contents("positions.txt", date("d/m/o H:i", time()+7200).",".$_POST['lat'].",".$_POST['lon']."\n", FILE_APPEND); ?>
file_put_contents("positions.txt", date("d/m/o H:i", time()).",".$_POST['lat'].",".$_POST['lon']."\n", FILE_APPEND); ?>
<body>
<p>Position added.</p>
</body>