Issue with date format?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Meow the Catz
Posts: 13
Joined: 06 Mar 2007, 14:04

Issue with date format?

Post by Meow the Catz »

Hi,

I'm using Mantis in french. And the dates are displayed like this:
mm/dd/yyyy or mm/dd/yy

In french, the dates should be: dd/mm/yyyy or dd/mm/yy.

Is there a way to fix this?

Thanks
costanm
Posts: 19
Joined: 07 Nov 2006, 15:09
Location: Noesis - Portugal

Post by costanm »

yes....
i´m sorry, but I don´t have the config file here, but there is a string in config_defaults that sets the date parameter....

i'm in portugal and also changed my date...

best regards
Nuno Ferreira da Costa
zakman
Posts: 18
Joined: 04 Mar 2007, 21:16
Location: Cairo, Egypt

Re:Issue with date format?

Post by zakman »

Hi Meow the Catz,

Try this, hope to help you.
http://www.php.net/manual/en/function.date.php

Then you have to change it in, config_defaults_inc.php. Exactly in the "date format settings".
Best Regards,
ZakMan
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

The config_defaults_inc.php is meant to have the default configuration as shipped with Mantis, editing this file will work, but will cause the configuration to be lost when you upgrade.

The change should be done by setting this configuration option in config_inc.php. Copy the option from config_default_inc.php to config_inc.php and edit it's value in config_inc.php.
Migrate your MantisBT to the MantisHub Cloud
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

I forgot to paste the configuration options:

Code: Select all

	# --- date format settings --------
	# date format strings defaults to ISO 8601 formatting
	# go to http://www.php.net/manual/en/function.date.php
	# for detailed instructions on date formatting
	$g_short_date_format    = 'Y-m-d';
	$g_normal_date_format   = 'Y-m-d H:i';
	$g_complete_date_format = 'Y-m-d H:i T';
Migrate your MantisBT to the MantisHub Cloud
Post Reply