View Issue Details

IDProjectCategoryView StatusLast Update
0008768mantisbtapi soappublic2012-06-16 06:34
Reporterplanser Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0 
Fixed in Version1.2.5 
Summary0008768: webservice call which returns timezone information
Description

Obviously we need a new webservice call which returns timezone information from the server on which a Mantis installation is running:

If for instance I'm adding a new version via mc_project_version_add() and I want to set date & time then it's important to know that currently local time is used. If I wanted to convert the date & time values to the daylight time of the timezone the server lifes in then I need to know that timezone.

Additional Information

The call could return the result of date_default_timezone_get().

We could add the new call to 1.1.1 without breaking compatibility (no signature of an existing call changes).

TagsNo tags attached.

Relationships

related to 0008767 closedplanser incorrect date and time handling in mc_project_version_add and mc_project_version_update 
related to 0006424 closeddregad Allow for per-user timezone setup 
related to 0008085 closedatrol User based timezone settings 
related to 0013445 closedvboctor Add mc_login() for login and to return user data 

Activities

vboctor

vboctor

2008-07-05 01:05

manager   ~0018308

I added a relation to a couple of other issues relating to timezone. When doing this web service call, we should take into consideration that eventually we want to have the following features:

  1. Have a default time zone that is different from the server time zone.
  2. Have a timezone override per user.
vboctor

vboctor

2012-06-05 02:10

manager   ~0032010

Starting MantisBT 1.2.5, it is possible to retrieve the user's time zone via:
mc_user_pref_get_pref

The preference name is "timezone", make sure to use a project_id that is not 0. There is an issue that happens when 0 is passed that needs to be resolved.