View Issue Details

IDProjectCategoryView StatusLast Update
0001139mantisbtlocalizationpublic2008-09-01 13:40
Reportercyclespersecond Assigned Toachumakov  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionduplicate 
Product Versionnone 
Fixed in Version1.1.0a2 
Summary0001139: [all lang] date localisation
Description

Providing for different languages is a worthwhile effort to make. But date representations vary as well. It would be useful for each user/project to configure the date format.

Additional Information

At first, probably just limit it to a couple of the most common representations ...

mm/dd
mm/dd/yyyy
dd/mm
dd/mm/yyyy

TagsNo tags attached.

Relationships

duplicate of 0007502 closedachumakov [all lang] Dates should use ISO format by default 
has duplicate 0005203 closedvboctor It would be very nice to customize date format. 
has duplicate 0006033 closedthraxisp Showing dates for non US-resident 
has duplicate 0001243 closedgrangeway Have client side times 
related to 0003863 closedatrol [all lang] Date literals ("october") are always in english 
related to 0003160 closedachumakov Please use ISO dates in this installation 
related to 0007137 closedryandesign International-style dates 
child of 0004416 closedthraxisp Roadmap - Move configurations to database 

Activities

prescience

prescience

2001-11-13 21:37

reporter   ~0001586

You can do this by editing some of the config variables in config_inc.php. It might be nice to be able to allow each user to see them in a format they prefer.

amell

amell

2003-04-10 13:13

reporter   ~0004164

Can I register an interest in this being fixed.

Date format in mantis is USA specific. In the UK, todays date is written as 10-4-03. The dates in mantis are confusing for users on a US/UK mantis project as we have here. Ideally we need to allow users to specify their own individual date format in preferences.

jowouters

jowouters

2003-04-10 20:04

reporter   ~0004166

Last edited: 2003-04-10 20:06

I think users should also be able to register the timezone they are in. All dates in Matis seem to be the server-dates; while users on other timezones probably want to see there local time.
(I'm having this problem since my server is located in the US, but I'm in Belgium, Europe)
(BTW, developers probably prefer the dateformat: yyyy-mm-dd)

edited on: 04-10-03 20:06

amell

amell

2003-04-10 20:53

reporter   ~0004167

The email generated when you add bugs here includes the timezone (CET and CEST) but these are not displayed on the web interface. I can find nowhere to set my default timezone.

On my mantis server (0.17.5) the server timezone is BST (GMT+1) but bugs are being created with timezone GMT incorrectly. I think the whole handling of timezones and date locales needs to be looked at. Anyone else have any views?

The way I see it, is that we need to store user timezone and date format with the user in the database. This timezone/date format should be changeable via preferences for the user.

sgrund

sgrund

2003-08-08 16:05

reporter   ~0004509

AFAIK uses mantis the MySQL-function UNIX_TIMESTAMP() which outputs in GMT. I found nothing about changing to another timezone.

concerning date format: could You 'just' add the different date formats in lang/strings* ?
e.g. german: d.m.y
us: m-d-y
uk: d-m-y and so on

ob7ect

ob7ect

2004-02-26 11:55

reporter   ~0005115

Last edited: 2004-02-26 11:59

I'd like to see the option to, at the very least, have the option set a timezone hour offset for the entire mantis-site. The server we run mantis is on is 3 hours behind where we located, and the times displayed site-wide tend to confuse the locals ;)

edited on: 02-26-04 11:59

Rocko

Rocko

2004-02-29 09:09

reporter   ~0005135

Last edited: 2004-02-29 09:11

Yep, timezone support would be good.
I only think on a server, which moved from europe to us, and the time zone is now GMT-6, instead of GMT.. and that confuses the users, because it's 6 hours earlier, that it's really ;)

@sgrund: europe: yyyy-mm-dd

:)

bearbeitet am: 02-29-04 09:11

richardt

richardt

2004-04-19 02:50

reporter   ~0005384

Having the ability to select your timezone will lock Mantis in as my bug tracker of choice. I am hacking the core for this to work on my production bug tracker, but it would be fantastic to see this as a standard user-level preference.

Sire

Sire

2004-08-23 06:06

reporter   ~0007113

Related to 0003863 (fix included in report)

DGtlRift

DGtlRift

2004-08-24 13:11

reporter   ~0007137


echo date( lang_get( 'date_format_string' ), $sometime );

Something like this would be fairly easy, the only issue is that the lang/strings files are broken down by language and not by region/lang but that may not be hard... except that keeping them up to date might be difficult since there would be multiple files for the same language, ie:

lang/strings_en_US.txt
lang/strings_en_UK.txt
lang/strings_en_IE.txt
lang/strings_en_CA.txt
lang/strings_fr_CA.txt
lang/strings_fr_FR.txt
etc....

although, this would allow for color and colour...

gtomlin

gtomlin

2005-01-06 10:47

reporter   ~0008867

Last edited: 2005-01-06 10:49

As mentioned in 0003160, any list of date formats should include the ISO 8601 format . See:
http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html or
http://www.w3.org/TR/NOTE-datetime (<-- edit: put this URL together, it's all one)
for details.

Personally, I'd rather not see the date format set by language. This would cause many users to be automatically saddled with the ambiguous DD/MM/YYYY or MM/DD/YYYY formats instead of the unambiguous YYYY-MM-DD format, without giving the user the opportunity to make a choice that works for him/her.

richardhill

richardhill

2005-05-30 22:43

reporter   ~0010279

Has this progressed any further? To anyone looking for a quick fix, I have hacked the core/database_api.php file at approx line 288:

function db_now() {
global $g_db;

return $g_db->DBTimeStamp(time() + 36000);

}

The addition of 10 hours (36000 seconds) puts the correct time into the database on new and updated issues. I'm not completely familiar with Mantis' design, and I'm unsure what other functions this will effect.

grunes

grunes

2006-01-24 04:53

reporter   ~0012010

We are using Mantis in several time-zones around the globe.

I also really need support of different time-zones.

grangeway

grangeway

2006-04-17 11:36

reporter   ~0012538

The concept of date here, should also include time format/time zones - i.e. 0001243

achumakov

achumakov

2006-10-05 20:16

reporter   ~0013588

Default ISO YMD date replresentation is now used.
Separate bugs for localized and client-side dates left open.