Time
Last Modified: August 3, 2003 08:08AM
|
|
(Any)
|
Description
| $g_cookie_time_length |
Time for 'permanent' cookie to live in seconds. This is what is used when a user selects "save login". Default is the equivalent of 1 year (30000000). |
| $g_wait_time |
Time to delay between page redirects (in seconds). Users can override this setting in their user preferences. Default is 2 seconds. |
| $g_content_expire |
Time to wait before document is stale (in minutes). This is used in meta_inc.php. Default is 0 (expires right away). |
| $g_long_process_timeout |
This timeout is used by pages which does time consuming operations like upgrading the database. The default value of 0 disables timeout. Note that this timeout is specified in seconds. |
|
|
User Contributed Notes Time |
|
jblists@SPAM_FREEbuccola.org 27-Jul-2004 11:50 |
#180
|
| A simple feature request: add a timezone/offset for the date/time display by user. |
|
rorsach5@nodebtreleifneededthanksHotmail.com 05-Apr-2005 19:25 |
#399
|
I concurr, I have a web server in the us and need to localize the times to GMT.is there maybe a php directive to set the time zone?
hmm... |
|
tim.NOtrimbleJUNK@gmail.com 28-Apr-2005 14:07 |
#424
|
I too need this. It would seem to be an easy thing to implement. Initially, a parameter of "TimeOffset" needs to be added. Then change all the references to the time to include the TimeOffset parameter with the appropriate calculation. I'm not a PHP programmer but it's worth it to me and my organization to look at this.
If I come up with a solution then I'll post here.
Timinator |
|
tim.NOtrimbleJUNK@gmail.com 28-Apr-2005 15:37 |
#425
|
Discovered that this can be done by putting the following in the config_inc.php file:
putenv("TZ=America/Los Angeles" );
This worked for me. You can find a list of timezones here:
http://www.theprojects.org/dev/zone.txt
Enjoy.
Timinator |
|
tim.NOtrimbleJUNK@gmail.com 28-Apr-2005 15:42 |
#426
|
Minor correction. Don't forget to put the underscore in if needed.
Should be:
putenv("TZ=America/Los_Angeles" );
Doh!
My Bad.
Timinator |
|
salmira[at]mail.com 04-Nov-2005 7:34 |
#695
|
Unfortunatelly, putenv works fine only for issues posted after you have started using such config...
But if, for example, an issues was posted at 11-04-2005 12:38 EET [GMT+0200], then you change your Mantis local time by adding [ putenv("TZ=America/Havana" )] to config_inc.php. Now, reviewing the issues, you will see the post time as [11-04-2005 12:38 CST [GMT-0500]] instead of supposed [11-04-2005 05:38 CST [GMT-0500]]! The hours remained the same!...
It will be very nice to get an oppportunity for users to set local time: the rule how the server time messages should be converted to reflect real time changes according user local time settings. In other words, if there is a difference between server and user local times (e.g, server time GMT -0500, user local time GTM +0200), and a change was done at 11-04-2005 05:38 CST [GMT-0500] = 11-04-2005 12:38 EET [GMT+0200] (let's say, an hour ago), then the user should see it as an hor ago 12:38, but not as 8 hours ago 05:38...
Salmira |
|
fcasarra 08-Jan-2006 12:58 |
#808
|
It not worked to me in version 1.0.0rc4. 
I tried putenv("TZ=Europe/Madrid" ); but nothing have changed. |
|
emilioj.cabezas@gmail.com 11-Jan-2006 10:37 |
#822
|
| Try to put the command at the final of the config file, in order to override previous configurations of the TZ variable. It worked for me on the 1.0.0rc2 and the same TZ (Europe/Madrid) |
|
optional@you-said.optional 07-Feb-2006 13:39 |
#878
|
| It would be very useful (and not too complicated for devs) to implement time localization settings for each user. That would help people from different time zones to work together |
|
none@noemail.com 07-Jun-2006 19:19 |
#1127
|
| What about changing the display format for time to 12 hour time instaed of 24 hour time. US American's usually use 12 hour time. |
|
you.said@it.is.optional 22-Nov-2006 20:45 |
#1302
|
After adding the directive putenv("TZ=America/Montreal" ; in the config_inc.php, I issued the following SQL queries to correct the time already stored in the tables:
UPDATE `mantis_bug_file_table` SET `date_added`=TIMESTAMP(`date_added`,"-05:00:00" ;
UPDATE `mantis_bug_history_table` SET `date_modified`=TIMESTAMP(`date_modified`,"-05:00:00" ;
UPDATE `mantis_bug_table` SET `date_submitted`=TIMESTAMP(`date_submitted`,"-05:00:00" ;
UPDATE `mantis_bug_table` SET `last_updated`=TIMESTAMP(`last_updated`,"-05:00:00" ;
UPDATE `mantis_bugnote_table` SET `date_submitted`=TIMESTAMP(`date_submitted`,"-05:00:00" ;
UPDATE `mantis_bugnote_table` SET `last_modified`=TIMESTAMP(`last_modified`,"-05:00:00" ;
UPDATE `mantis_news_table` SET `date_posted`=TIMESTAMP(`date_posted`,"-05:00:00" ;
UPDATE `mantis_news_table` SET `last_modified`=TIMESTAMP(`last_modified`,"-05:00:00" ;
UPDATE `mantis_project_file_table` SET `date_added`=TIMESTAMP(`date_added`,"-05:00:00" ;
UPDATE `mantis_project_version_table` SET `date_order`=TIMESTAMP(`date_order`,"-05:00:00" ;
UPDATE `mantis_sponsorship_table` SET `date_submitted`=TIMESTAMP(`date_submitted`,"-05:00:00" ;
UPDATE `mantis_sponsorship_table` SET `last_updated`=TIMESTAMP(`last_updated`,"-05:00:00" ;
UPDATE `mantis_tokens_table` SET `timestamp`=TIMESTAMP(`timestamp`,"-05:00:00" ;
UPDATE `mantis_user_table` SET `date_created`=TIMESTAMP(`date_created`,"-05:00:00" ;
UPDATE `mantis_user_table` SET `last_visit`=TIMESTAMP(`last_visit`,"-05:00:00" ;
|
|
you.said@it.is.optional 22-Nov-2006 20:46 |
#1303
|
After adding the directive putenv("TZ=America/Montreal" ) ; in the config_inc.php, I issued the following SQL queries to correct the time already stored in the tables:
UPDATE `mantis_bug_file_table` SET `date_added`=TIMESTAMP(`date_added`,"-05:00:00" ) ;
UPDATE `mantis_bug_history_table` SET `date_modified`=TIMESTAMP(`date_modified`,"-05:00:00" ) ;
UPDATE `mantis_bug_table` SET `date_submitted`=TIMESTAMP(`date_submitted`,"-05:00:00" ) ;
UPDATE `mantis_bug_table` SET `last_updated`=TIMESTAMP(`last_updated`,"-05:00:00" ) ;
UPDATE `mantis_bugnote_table` SET `date_submitted`=TIMESTAMP(`date_submitted`,"-05:00:00" ) ;
UPDATE `mantis_bugnote_table` SET `last_modified`=TIMESTAMP(`last_modified`,"-05:00:00" ) ;
UPDATE `mantis_news_table` SET `date_posted`=TIMESTAMP(`date_posted`,"-05:00:00" ) ;
UPDATE `mantis_news_table` SET `last_modified`=TIMESTAMP(`last_modified`,"-05:00:00" ) ;
UPDATE `mantis_project_file_table` SET `date_added`=TIMESTAMP(`date_added`,"-05:00:00" ) ;
UPDATE `mantis_project_version_table` SET `date_order`=TIMESTAMP(`date_order`,"-05:00:00" ) ;
UPDATE `mantis_sponsorship_table` SET `date_submitted`=TIMESTAMP(`date_submitted`,"-05:00:00" ) ;
UPDATE `mantis_sponsorship_table` SET `last_updated`=TIMESTAMP(`last_updated`,"-05:00:00" ) ;
UPDATE `mantis_tokens_table` SET `timestamp`=TIMESTAMP(`timestamp`,"-05:00:00" ) ;
UPDATE `mantis_user_table` SET `date_created`=TIMESTAMP(`date_created`,"-05:00:00" ) ;
UPDATE `mantis_user_table` SET `last_visit`=TIMESTAMP(`last_visit`,"-05:00:00" ) ;
|
|
|
| Last updated: Tue, 14 Oct 2008 - 8:14:23 |
|
|