[RELEASE] DST MOD (daylight savings time)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
cdkrg
Registered User
Posts: 706
Joined: Fri Jul 12, 2002 12:35 pm
Contact:

Post by cdkrg »

BTW everyone here are the locations if you want to add them to the time zone select part.
They were in an earlier version of phpbb but were removed due to DST problems.

If anyone needs help putting them back in I'll write it up but this should be enough info.

gmt -12 Eniwetok, Kwajalein

-11 Midway Island, Samoa

-10 Hawaii

-9 Alaska

-8 Pacific Time (US & Canada), Tijuana

-7 Mountain Time (US & Canada), Arizona

-6 Central Time (US & Canada), Mexico City

-5 Eastern Time (US & Canada), Bogota, Lima, Quito

-4 Atlantic Time (Canada), Caracas, La Paz

-3:30 Newfoundland

- 3 Brazilia, Buenos Aires, Georgetown, Falkland Is

-2 Mid-Atlantic, Ascension Is, St. Helena

-1 Azores, Cape Verde Is.

GMT Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia

+1 Amsterdam, Berlin, Brussels, Madrid, Paris, Rome

+2 Cairo, Helsinki, Kaliningrad, South Africa

+3 Baghdad, Riyadh, Moscow, Nairobi

+3.30 Tehran

+ 4 Abu Dhabi, Baku, Muscat, Tbilisi

+ 4 .5 Kabul

+ 5 Ekaterinburg, Islamabad, Karachi, Tashkent

+5.5 Bombay, Calcutta, Madras, New Delhi

+6 Almaty, Colombo, Dhaka, Novosibirsk

+6.5 Rangoon

+7 Bangkok, Hanoi, Jakarta

+ 8 Beijing, Hong Kong, Perth, Singapore, Taipei

+ 9 Osaka, Sapporo, Seoul, Tokyo, Yakutsk

+9.5 Adelaide, Darwin

+10 Canberra, Guam, Melbourne, Sydney, Vladivostok

+11 Magadan, New Caledonia, Solomon Is.

+12 Auckland, Wellington, Fiji, Marshal Is.

User avatar
cdkrg
Registered User
Posts: 706
Joined: Fri Jul 12, 2002 12:35 pm
Contact:

Post by cdkrg »

cdkrg wrote: There are several problems with this mod upon install and I'd greatly appreciate any clarification about it.

This doesn't exist:
$user_timezone = $userdata['user_timezone'];


But this does
$user_timezone = $this_userdata['user_timezone'];


Ok, no big deal but what about the modded code?

Should this:
// OLD $user_timezone = $userdata['user_timezone'];
$user_timezone = ( $userdata['user_timezone'] > 12 ) ? $userdata['user_timezone'] - 50 : $userdata['user_timezone']; // DST MOD


be this?
// OLD $user_timezone = $this_userdata['user_timezone'];
$user_timezone = ( $this_userdata['user_timezone'] > 12 ) ? $this_userdata['user_timezone'] - 50 : $this_userdata['user_timezone']; // DST MOD




and in page_header it says to look for this:
'S_TIMEZONE' => sprintf($lang['All_times'], $lang[$board_config['board_timezone']]),


When all I have is this:
'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])]),


What should I do with that extra number format bit?



I'd really like to use this mod and any help with those bits of code would be greatly appreciated.

BTW, what about the problems mentioned earlier with admin editing of the profiles? Has that been solved?


Can anyone help with those two snippets?

Brandons
I am too lazy to register

Post by Brandons »

Don't Know If This Is Posted Somewhere. But if you change

Code: Select all

if ( $board_config['dstime'] ) $tz++; // DST MOD 
to

Code: Select all

if ( $board_config['dstime'] ) $tz--; // DST MOD 
then it will show correct time for users whom are using this... after the october daylight savings... for the west coast...

HUDSON
Registered User
Posts: 38
Joined: Wed Feb 19, 2003 1:50 pm
Contact:

Re: [RELEASE] DST MOD (daylight savings time)

Post by HUDSON »

blulegend wrote: This is what I'm sending everyone:

Here's the link that I have uploaded to this site.

Please let me know if it works out for you.

http://www.phpbb.com/mods/downloads/upl ... d_copy.txt

Seems to be working for everyone that had asked so here it is.

UPDATE: the link is down since it was on the dead server, here's the code:



I used the coding from bluelegend.
I'm having the problem that when you go to change the DST from no to yes it has this as the title ":" and when i submit it doesn't change it - when i try again it doesn't appear to be on yes or no.
Here's the link if you don't get what i mean!
http://www.delboynet.co.uk/phpBB2/index.php

Thanks

chadsmith
Registered User
Posts: 261
Joined: Sat Jul 13, 2002 4:54 pm
Location: 67212
Contact:

phpbb 2.0.4?

Post by chadsmith »

Does this mod work in 2.0.4?

ogden2k
Registered User
Posts: 267
Joined: Wed Dec 25, 2002 4:52 am
Location: Maine, USA
Contact:

Re: phpbb 2.0.4?

Post by ogden2k »

chadsmith wrote: Does this mod work in 2.0.4?


I'd like to know this also... Why wouldn't they include this in the config by default?? :x
Are you a Techie? Do you need Tech support? Then check out TechieHQ.net.

User avatar
smithy_dll
Former Team Member
Posts: 7630
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith
Contact:

Post by smithy_dll »

please release mods into the new MODDB

http://www.phpbb.com/phpBB/catdb?db=1

Locked

Return to “[2.0.x] MODs in Development”