Page 1 of 1

Setting The Date

Posted: 17 Jul 2009, 10:45
by chrisjrm
Hello,

Is there some way for me to change the date and time that shows in Mantis to a different time zone (eg: New Zealand [UTC +12])?

I'm using version 1.2.0rc1

I don't have access to the php.ini file because I'm using shared web hosting.

Cheers,
Chris

Re: Setting The Date

Posted: 23 Oct 2009, 19:52
by Rafaella
Hello
I'm with the same scenario, a help is welcome!
Greetings from Brazil.

Re: Setting The Date

Posted: 22 May 2020, 12:53
by fmildemberger
Hello!
I have the same problem, I'm in São Paulo, Brazil. The time and date of my linux server is correct 05/22/2020 and time 09: 52-am, however, when creating a task, the task time is shown as 12: 23- pm ... where can i fix this?

Re: Setting The Date

Posted: 22 May 2020, 13:31
by cas
see this section:

Code: Select all

##############################
# MantisBT TimeZone Settings #
##############################

/**
 * Default timezone to use in MantisBT
 *
 * This configuration is normally initialized when installing Mantis.
 * It should be set to one of the values specified in the
 * {@link http://php.net/timezones List of Supported Timezones}.
 * If this config is left blank, the timezone will be initialized by calling
 * {@link http://php.net/date-default-timezone-get date_default_timezone_get()}
 * (note that this function's behavior was modified in PHP 5.4.0), which will
 * fall back to 'UTC' if unable to determine the timezone.
 * Correct configuration of this variable can be confirmed by running the
 * administration checks.
 * Users can override the default timezone under their preferences.
 *
 * @global string $g_default_timezone
 */
$g_default_timezone = '';
 
Copy the above in core/config_inc.php and adjust the setting.... :mrgreen:

Re: Setting The Date

Posted: 29 May 2020, 18:38
by fmildemberger
thank you very much, thank you very much!