mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-12 23:56:08 +00:00
Change the date display
The date display was changed from 'm/d/Y' to 'd.m.Y'
This commit is contained in:
@@ -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'])."'";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user