mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 06:11:00 +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();
|
||||
|
||||
Reference in New Issue
Block a user