[MODDB] Automatic Daylight Savings Time (DST)

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!
Anti-Spam Guide
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

[MODDB] Automatic Daylight Savings Time (DST)

Post by MartectX »

MOD Title: Automatic DST for all users
MOD Description: Allows users to choose Daylight Savings Time (DST) automatically instead of having to set it twice a year.

May be applied to visitors as well by setting this to YES for the anonymous user.
MOD Version: 1.0.RC1
MOD Download: http://martectx.de/auto_dst/Automatic_DST_1.0.1.zip

Any feedback is very welcome! :)
Last edited by MartectX on Fri Jun 20, 2008 11:21 pm, edited 7 times in total.
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [BETA] Automatic DST for all users

Post by MartectX »

Anyone tested this? Works on my test board without a flaw as far as I can see... :?:

But: Only for boards where you are sure that all your users are from DST timezones - there is no dinstinguishing function (yet?)!

Hmmm... I could remake the DST setting into an "enable automatic DST" switch... and then use that switch in session.php... anyone interested in this?
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [RC0] Automatic Daylight Savings Time (DST)

Post by MartectX »

1.0.RC0
- New functionality: Make it an option for each user

1.0.RC1
- Fix: Show [ DST ] in breadcrumbs.html only when it is the appropriate time of year

1.0.RC2
- Code Changes
- Submitted to mod database
User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [RC2] Automatic Daylight Savings Time (DST)

Post by JunglistPerfection »

Does this work with phpBB 3.0.1?
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [RC2] Automatic Daylight Savings Time (DST)

Post by MartectX »

JunglistPerfection wrote:Does this work with phpBB 3.0.1?
Sure does!
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [Stable] Automatic Daylight Savings Time (DST)

Post by MartectX »

1.0.1
- Minor validation edits
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 27266
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [Stable] Automatic Daylight Savings Time (DST)

Post by Paul »

Hello,

Please edit your topic title with a prefix as outlined in Modifications Development Forum Rules, section 3.a, 3.b. The prefix you are currently using is not allowed. If your modification is still in development, you can use the prefixes as outlined in section 3.a. If your modification is stable, please submit your modification to the phpBB.com MODDB (the modifications release database), for validation pending release. For more information on the benefits of submitting your MOD to the MODDB, please see this topic.

Your cooperation is very much appreciated by the phpBB Modifications Team.

Thank you,
The phpBB Modifications Team
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [Stable] Automatic Daylight Savings Time (DST)

Post by MartectX »

Paul wrote:Please edit your topic title with a prefix as outlined in Modifications Development Forum Rules, section 3.a, 3.b. The prefix you are currently using is not allowed.
Yeah, sorry for that. But the mod got its validation denied because I used "RC" as part of the version number, so I figured I should change that in the forum, too. And I did in fact try to look up naming rules, but the link at the top did not (does now) and that in your post does not work!

Changed it back to RC.
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [RC] Automatic Daylight Savings Time (DST)

Post by IPB_Refugee »

Hi MartectX,

thanks for your MOD! Can you explain how it works, please?

Have a nice Sunday
Wolfgang
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [RC] Automatic Daylight Savings Time (DST)

Post by MartectX »

Hi Wolfgang,

it's quite simple really: If the user activates Auto DST every date gets checked for being in the respective year's summer time; this is done via date's "I" option.

Let me know if it doesn't work for you!
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [RC] Automatic Daylight Savings Time (DST)

Post by IPB_Refugee »

I surely will. :) It's good to have a MOD like this. As you know, the German version of phpBB-2 has this function already included and if you don't install a MOD for automatically adjust the time I can already hear the members complain: Admiiiiiin!!!!! The clock is wrong!!!!!!!!!!!

I have looked at your code and have to admit that I don't understand it completely yet. :oops: It seems to be quite different from another MOD with the same intention.

Thanks again
Wolfgang
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [RC] Automatic Daylight Savings Time (DST)

Post by MartectX »

No, the German version includes an option to set DST for all users by the admin, which has the disadvantage that the admin still has to do it twice a year and that it's always set for all users in time zone GMT+1.

The mod you linked to may have the disadvantage of displaying posts made during non-DST time displaced by one hour (no big deal) but again it's for all users in time zone GMT+1.

I modded the function I wanted to have: A per-user setting of automatic DST. Thus far I've had no complaints (running on my board without problems - well, one, but it's fairly well hidden :lol:).
Last edited by MartectX on Sun Jun 01, 2008 11:19 pm, edited 1 time in total.
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [RC] Automatic Daylight Savings Time (DST)

Post by IPB_Refugee »

Sorry for the silly question, but is it possible to test your MOD without having the possibility to change the server time? (If not, I will report in a few moths, whether or not your MOD is working as it should. :P )

Have a nice evening
Wolfgang
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [RC] Automatic Daylight Savings Time (DST)

Post by MartectX »

As it works retroactively, you could install it, activate it and compare posts made in DST phases to posts made in normal time phases. Only the first should be one hour different in comparison to before.
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: [MODDB] Automatic Daylight Savings Time (DST)

Post by MartectX »

You may ask further questions in the mod database topic this mod has been announced in: http://www.phpbb.com/community/viewtopic.php?t=1020905
Locked

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