Fix issue in date

This commit is contained in:
Léo Serre 2018-06-27 20:37:26 +02:00
parent 4e6c027acb
commit 314da54b69
1 changed files with 1 additions and 1 deletions

View File

@ -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>