Change the date display

The date display was changed from 'm/d/Y' to 'd.m.Y'
This commit is contained in:
Vladyslav
2018-05-19 20:52:33 +03:00
parent 37e70a165b
commit a956abee13
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ class Account {
}
private function Activate() {
if(START_DATE < date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i'))
if(START_DATE < date('d.m.Y') or START_DATE == date('d.m.Y') && START_TIME <= date('H:i'))
{
global $database;
$q = "SELECT act, username, password, email, tribe, location FROM ".TB_PREFIX."activate where act = '".$database->escape($_POST['id'])."'";
+1 -1
View File
@@ -4574,7 +4574,7 @@ class Automation {
$result = mysqli_query($database->dblink,$q);
if($result) {
$row = mysqli_fetch_assoc($result);
$stime = strtotime(START_DATE) - strtotime(date('m/d/Y')) + strtotime(START_TIME);
$stime = strtotime(START_DATE) - strtotime(date('d.m.Y')) + strtotime(START_TIME);
if($row['lastgavemedal'] == 0 && $stime < time()){
$newtime = strtotime('next monday');
$q = "UPDATE ".TB_PREFIX."config SET lastgavemedal = ".(int) $newtime;
+1 -1
View File
@@ -733,7 +733,7 @@ class MYSQLi_DB implements IDbConnection {
list($username, $password, $email, $tribe, $act) = $this->escape_input($username, $password, $email, $tribe, $act);
$time = time();
$stime = strtotime(START_DATE) - strtotime(date('m/d/Y')) + strtotime(START_TIME);
$stime = strtotime(START_DATE) - strtotime(date('d.m.Y')) + strtotime(START_TIME);
if($stime > $time) $time = $stime;
$timep = $time + PROTECTION;
$time = time();
+1 -1
View File
@@ -618,7 +618,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<table>
<tr>
<td><span class="f9 c6">Start Date:</span></td>
<td width="140"><input type="text" name="start_date" id="start_date" value="<?php echo date('m/d/Y'); ?>"></td>
<td width="140"><input type="text" name="start_date" id="start_date" value="<?php echo date('d.m.Y'); ?>"></td>
</tr>
<tr>
<td><span class="f9 c6">Start Time:</span></td>