PDA

View Full Version : Add additional timezones


Marco van Herwaarden
11-21-2005, 10:00 PM
I posted this as a solution to a users question, but i better release it here also, since it could help others.

The example is for Nepal timezone (GMT+5:45, +575 decimal) but you can adjust it to the zone you need.

1) Create a new phrase:
Phrasetype: Timezones
Varname: timezone_gmt_plus_0545
Text: (GMT +5:45) Nepal Standard Time

2) Edit ./includes/adminfunctions.php
Find:
'5.5' => $vbphrase['timezone_gmt_plus_0530'],Add under: '5.75' => $vbphrase['timezone_gmt_plus_0545'],

3) Edit ./includes/functions_misc.php
Find:
'5.5' => 'timezone_gmt_plus_0530',Add Under: '5.75' => 'timezone_gmt_plus_0545',

indiamike
11-22-2005, 11:11 PM
Thanks!!!!

Simple and effective. I have some users from Nepal and surprisingly no one has ever noticed this timezone missing.

Thanks again :cool:

admin0
11-24-2005, 12:22 PM
Thanks again to MarcoH64.

This is the default timezone of my board :)
Works Perfectly!

Marco van Herwaarden
11-24-2005, 01:19 PM
This is the default timezone of my board
Works Perfectly
Then please click install ;)

Shanj
01-09-2010, 04:02 PM
Can this display 2 selected timezones?