Skip to content

Commit

Permalink
Change the date format inserted in the DB. A few more files impacted
Browse files Browse the repository at this point in the history
  • Loading branch information
MeanBean committed Jun 13, 2020
1 parent c94214b commit ba7812f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inc/utils.php
Expand Up @@ -70,5 +70,5 @@ function addslashes_a($str) {
function save_error($string) {
global $db;

$db->insert("erreurs", array("error" => $string, "heure" => date('c')));
}
$db->insert("erreurs", array("error" => $string, "heure" => date('Y-m-d H:i:s')));
}
2 changes: 1 addition & 1 deletion teams/edit_sub.php
Expand Up @@ -69,7 +69,7 @@
"saison" => $subtitle['season'],
"episodename" => $subtitle['episodename'],
"status" => $subtitle['status'],
"created" => date('c'),
"created" => date('Y-m-d H:i:s'),
"timing" => $subtitle['timing']));
header("location:subtitles.php?tid={$subtitle['teamid']}&action=added");
exit;
Expand Down
2 changes: 1 addition & 1 deletion teams/forum.php
Expand Up @@ -23,7 +23,7 @@
$errors[] = "Le message ne doit pas être vide";
}
else {
$db->insert("posts", array("subid" => $sub['subid'], "userid" => $user['uid'], "post_time" => date('c'), "post_text" => $msg));
$db->insert("posts", array("subid" => $sub['subid'], "userid" => $user['uid'], "post_time" => date('Y-m-d H:i:s'), "post_text" => $msg));
$id = $db->insertid();
header("location:forum.php?sid={$sub['subid']}#p-{$id}");
exit;
Expand Down

0 comments on commit ba7812f

Please sign in to comment.