ManiaControl & Timezones

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: kremsy, Jocy, Wabbitface, steeffeen, NADEO

Post Reply
marlburrow
Posts: 9
Joined: 10 Nov 2013, 19:16

ManiaControl & Timezones

Post by marlburrow » 24 Aug 2014, 23:05

Hi,

Currently, I use Carbon in my plugin to display dates (https://github.com/briannesbitt/Carbon). Carbon extends Datetime class and Datetime need a Timezone to display dates correctly (ex : "Europe/Paris" or "UTC").

But I have not found where I can set the TimeZone in Maniacontrol. So I set the timezone in the load method of my plugin class like that :

Code: Select all

public function load(ManiaControl $maniaControl) {

    date_default_timezone_set ('Europe/Paris');

}
Maybe i'll use a setting to allow users to change the timezone as they wish. But i think it's cleaner to declare the timezone in the ManiaControl config file.

Do you plan to implement this parameter in a future release ?

Thank you for the answer

Marlburrow

Post Reply

Return to “ManiaControl”

Who is online

Users browsing this forum: No registered users and 2 guests