Page 1 of 1

Issue with date format?

Posted: 09 Mar 2007, 13:11
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

Posted: 09 Mar 2007, 16:22
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

Re:Issue with date format?

Posted: 09 Mar 2007, 17:48
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".

Posted: 10 Mar 2007, 03:10
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.

Posted: 10 Mar 2007, 03:12
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';