Download : click here
Language provided : English/French/German/Spanish/Italian
Upgrades provided : From the 1.0.x/1.1.0/1.1.1/2.0.0 RC1/2.0.0 releases
Code: Select all
##############################################################
## MOD Title: Advanced time management
## MOD Author: -=ET=- < space_et AT tiscali DOT fr > (n/a) http://www.golfexpert.net/phpbb
## MOD Description: This MOD allow the board administrator(s)
## and each user to manage the time displayed
## on the board.
## They can...
## - set the DST time lag of their state/country
## - enable/disable manually the DST
## - just synchronize DST switches with the server ones
## - fully use the server local time
## - fully use the server UTC time & the user's computer settings
## - fully use the user's computer local time
## MOD Version: 2.0.1
## Compatibility: 2.0.5->2.0.6 (prior release not tested)
##
## Installation Level: Intermediate
## Installation Time: 15 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit: 15
## admin/admin_board.php
## admin/admin_users.php
## includes/functions.php
## includes/functions_selects.php
## includes/page_header.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## templates/subSilver/formIE.css
## templates/subSilver/overall_header.tpl
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/simple_header.tpl
## templates/subSilver/subSilver.css
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/admin/page_header.tpl
## templates/subSilver/admin/user_edit_body.tpl
##
## Included Files: 7
## adv_time_db_update.php
## root/includes/pc_time_data.php
## root/language/lang_english/lang_adv_time.php
## root/language/lang_french/lang_adv_time.php
## root/language/lang_german/lang_adv_time.php
## root/language/lang_italian/lang_adv_time.php
## root/language/lang_spanish/lang_adv_time.php
##
##############################################################
## MOD History:
##
## 2003-12-06 - Version 2.0.1
## - $lang['server_pc_mode'] language entry modified
## - Add a language_change_log.txt file in the archive
## - Italian translation improved
## - For the language file include(), the code now test if the
## translation file exist and otherwise use the English file.
## - Comments has been add in every FIND instruction on part of code
## line(s) to help identifying those lines in manual installations
##
## 2003-11-07 - Version 2.0.0
## - Fix: modes choices alignment in ACP with IE
## - Fix: little height space inserted on the index page when 1st seen
## - Fix: error message on 5th & 6th mode with GZip compression enabled
## - Instructions rewrite for adv_time_db_update.php use
## - MOD now provide with German, Italian and Spanish translations
##
## 2003-09-30 - Version 2.0.0 Release Candidate 1
## - MOD rename from DST time management to Advanced time management
## - A new user's computer time mode has been add
## - The 2 old modes using the server UTC time & the user's
## computer settings have been merge in a new one which
## does not need a cookie or a page reload anymore
## - In user's profile, the default board mode is now bring to the fore by an "*"
## - Replace "GMT" by "UTC" in timezone drop down lists
## - Fix: modes choices alignment with Mozilla
##
## 2003-08-21 - Version 1.1.1
## - Fix reload not executed for the 5th mode with Mozilla
## - Minor improvements to be fully W3C compliant
## (in session management & form attributes)
## - Change the 5th mode information message on the index page
## - dst_db_update.php updated to ask to delete it after use
##
## 2003-08-17 - Version 1.1.0
## - Add the ability to set a default dst mode and a default
## dst time lag for anonymous users and new accounts
## - Replace "GMT" by "UTC" in the time status line as the "GMT"
## time is not the official universal time anymore since 1985
## - Several improvements in page_header.php & overall_header.tpl
## for the 5th mode
##
## 2003-08-05 - Version 1.0.1
## - Fix a minor issue in an input attribute of overall_header.tpl
## - Update "Author notes" for EasyMOD 0.0.10a
## - Release confirmed as phpBB 2.0.6 compliant (no change needed)
##
## 2003-07-12 - Version 1.0.0
## - Initial final release
## - Beta & RC releases are not supported anymore
## (no update available - reinstall the MOD)
##
## 2003-07-12 - Version 0.4.2 - Release candidate 4c
## - The MOD can now be installed by EasyMOD 0.0.9c
## of Nutzzy (but is not yet an officially EasyMOD
## Compliant MOD)!
##
## 2003-07-09 - Version 0.4.1 - Release candidate 4b
## - Fix: correct the DST modes choice alignment
## - Reduce DST time lag field width
## - Minor messages update
##
## 2003-07-09 - Version 0.4.0 - Release candidate 4
## - Minor messages update
## - Add 2 news modes and rename all 5 modes
##
## 2003-07-08 - Version 0.3.0 - Release candidate 3
## - Add specific time information messages on index page
## - PC synchro mode does not use cookies anymore
##
## 2003-07-04 - Version 0.2.1 - Release candidate 2
## - Modify Server synchro mode to be fully synchronized
## - Minor messages update
## - Fix: messages not displayed
##
## 2003-07-02 - Version 0.2.0 - Release candidate 1
## - Add DST time lag validity control
## - Add PC synchro mode
##
## 2003-06-26 - Version 0.1.0 - Initial beta release
## - No DST time lag validity control
## - No PC synchro mode
##
##############################################################
Just some little explanation for every one about how this MOD works.
First, it will add 2 new fields in each user's profile and in the ACP: "Time management mode" and "DST time lag"
Note : the DST time lag is often 1h but sometimes it can be 1/2h or other values. That's why this field exists.
And next, forums admins and users will have the choice between 5 modes:
o Manual settings - DST Enabled/Disabled
Code: Select all
-----------------------
| phpBB |Server | P C |
---------------------|-----------------------|
|UTC time | | x | |
|Timezone | x | | |
|DST switches | x | | |
|DST time lag value | x | | |
---------------------------------------------
This mode is the basic one, but it will ALWAYS work; in any circumstances.
FYI, these 2 choices will be merge in an unique "Manual settings" for phpBB 2.2 as this release will manage DST manually in user's profiles.
o DST switches synchronized with the server
Code: Select all
-----------------------
| phpBB |Server | P C |
---------------------|-----------------------|
|UTC time | | x | |
|Timezone | x | | |
|DST switches | | x | |
|DST time lag value | x | | |
---------------------------------------------
But be careful, to make this mode work correctly the host server must switch at the same date as you in your state.
o Times synchronized with the server local time
Code: Select all
-----------------------
| phpBB |Server | P C |
---------------------|-----------------------|
|UTC time | | x | |
|Timezone | | x | |
|DST switches | | x | |
|DST time lag value | | x | |
---------------------------------------------
But be careful, to make this mode work correctly your host server must be in the same state/country (same DST switch dates and same time zone).
o Times synchronized with the server universal time, timezone and DST with your computer settings
Code: Select all
-----------------------
| phpBB |Server | P C |
---------------------|-----------------------|
|UTC time | | x | |
|Timezone | | | x |
|DST switches | | | x |
|DST time lag value | | | x |
---------------------------------------------
The whole time lag is automatically managed by the code (time zone & DST time lag set in the phpBB profile are not used).
This mode use the UTC server time and add the PC time lag (DST+time zone). This is because the server time is often most precise than PC one, but the time lag set on the PC is always the good one.
With this mode, you can be on holydays or on business travel in a foreign country and consult your favorite phpBB forum without any time problem; it will be correctly adapt the time with the time lag of the PC you will use in the foreign country
For this mode, the JavaScript date/time functions must be enable on the navigator used.
o Times synchronized with your computer time
Code: Select all
-----------------------
| phpBB |Server | P C |
---------------------|-----------------------|
|UTC time | | | x |
|Timezone | | | x |
|DST switches | | | x |
|DST time lag value | | | x |
---------------------------------------------
It has all the advantages of the previous one except that the time of a personal computer is often less accurate than a server one.
I don't know if all my explanation were clear (I try to do my best in English), but if you have any question, feel free to ask me.
Any comments will be appreciate too
------------------
Other MODs/topics on the subject :
[FIX] Daylight Saving Time
Which is similar to my 3rd mode without the user DST time lag setting and the choice users individually have to apply this time correction or not.
But, it's much more easy to install
[dev] DST/Summer Time V1.0 BETA
Which has 2 modes :
- one similar to my first one (manual mode),
- and a second one which needs for each users to know and set the DST dates/times switches for their state/country. Not easy and it will not work to set a correct time if you are travelling in a foreign country
This MOD allow to set default settings.
Daylight Savings Time (DST) V1.1.0
Which has only 1 mode, the manual one (the same as my 1st one and the one which will be on phpBB 2.2).
Daytime changer summertime / wintertime V1.0.0 BETA
Which has a really strange approach, because it can only switch from DST to normal time (and vice versa) for the whole board (regardless each user's real need), use a fixed DST time lag of 1h (can not be modify), and apply this offset at fixed date each year
But that's NOT the correct dates for 99,99% of the countries in the world
http://www.timeanddate.com/time/dst2003a.html
http://www.timeanddate.com/worldclock/full.html