• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Gesior

Truwzka

Member
Joined
Nov 26, 2009
Messages
408
Reaction score
19
Location
Brazilia/Brazil
The date of my GesiorACC is buggy, it shows the current date as (Premium time expired at 1 January 1970, 1:00:30 CEST).
Someone know how to fix it ?
Thanks
 
PHP:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Sao_Paulo

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667

; http://php.net/date.default-longitude
;date.default_longitude = 35.2333

; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333
 
Is it automatically that date when creating a new account? This is from accountmanagement and createaccount.php.

PHP:
<small>(Premium time expired at '.date("M j Y, H:i:s", $account_logged->getCustomField("lastpremdays")).' CEST)</small>

if($config['site']['newaccount_premdays'])
{
$reg_account->setCustomField("premdays", $config['site']['newaccount_premdays']);
$reg_account->setCustomField("lastpremdays", time() + ($config['site']['newaccount_premdays'] * 24 * 60 * 60));
}
 
Is it automatically that date when creating a new account? This is from accountmanagement and createaccount.php.

PHP:
<small>(Premium time expired at '.date("M j Y, H:i:s", $account_logged->getCustomField("lastpremdays")).' CEST)</small>

if($config['site']['newaccount_premdays'])
{
$reg_account->setCustomField("premdays", $config['site']['newaccount_premdays']);
$reg_account->setCustomField("lastpremdays", time() + ($config['site']['newaccount_premdays'] * 24 * 60 * 60));
}

Isn't anyone reading what he have to say? Not when creating an account, the server time/website time is wrong.
 
He should be more specific with his problem in that case.

Does it show "1 January 1970" on all those dates?
 
No, for example in the deaths of the character and last login appears correctly.
Here is the code used in accountmanagement.php
PHP:
'<br><small>(Premium time expired at '.date("j F Y, G:i:s", $account_logged->getCustomField("premdays")).' CEST)</small></td></tr>
 
What do you mean by "I got bugged"?

Missing the column lastpremdays?

SQL:
ALTER TABLE `accounts` ADD `lastpremdays` int(10) NOT NULL AFTER `premdays`;
 
How come it doesn't work, I've got the exact same settings and it's working properly over here.

As Summ mentioned, tell us where you got "bugged".
 
Back
Top