Browse Source

Fix issue in date

master
Léo Serre 2 years ago
parent
commit
314da54b69
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rename_that_file.php

+ 1
- 1
rename_that_file.php 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>

Loading…
Cancel
Save