Muad''Dib wrote:If i set my UCP setting to either DST or no DST, it doesnt make a difference.. the time stays the same on the board.
If i try to change the DST setting for the board it automatically sets it to "no" again.
Thats it so far.
Muad''Dib wrote:I was thinking though that the registered users of a phpbb forum already enter in their own timezone. You can see it the same place you change the "Summer Time/DST is in effect" setting. It may be so much easier to use that setting they have already chosen to populate the $timezone variable... instead of having a redundant drop down box in the UCP. Make since? The same could be true for "System timezone:" under board settings. Eliminating the need for another drop down box (or whatever you had planned) altogether.
MartectX wrote:Nah, the time zone dropdown box must stay in the UCP for you may have an international board with users from different parts of the world. But the box will contain the city choices of PHP - I don't think there is any need for translations then because cities and continents are easily recognizable.
Stay tuned - big update in the next hours!
Muad''Dib wrote:Well thats what im saying .. instead of creating another drop down box in the UCP and ACP, why not use the setting they have already chosen with the existing drop down boxes?
It just seems redundant to have two boxes.. unless im not understanding you correctly..
Muad''Dib wrote:This also would make the mods transition seemless. Once the mod is installed, it automatically uses a setting that has already been configured by the users and admin --> (for the global board settings). No need to have all your users go into their UCP and select another timezone.
Muad''Dib wrote:Cant wait for the update!
[13-Mar-2009 22:30:13] PHP Fatal error: Call to undefined function automatic_dst_cache() in /home/<username>/public_html/dev/includes/cache.php on line 68Muad''Dib wrote:Well i thought i got rid of all the old traces of the previous version and then installed the latest, however it really screwed up the board's layout. Like it couldnt pull the style or something.
$config['board_dst'] = automatic_dst_cache($config['board_timezone']); if (version_compare(PHP_VERSION, '5.2.0'))
{
date_default_timezone_set($config['board_timezone']);
}
else
{
putenv ('TZ=' . $config['board_timezone']);
}
$config['board_dst'] = date('I');Muad''Dib wrote:
- Code: Select all
[13-Mar-2009 22:30:13] PHP Fatal error: Call to undefined function automatic_dst_cache() in /home/<username>/public_html/dev/includes/cache.php on line 68
MartectX wrote:Muad''Dib wrote:
- Code: Select all
[13-Mar-2009 22:30:13] PHP Fatal error: Call to undefined function automatic_dst_cache() in /home/<username>/public_html/dev/includes/cache.php on line 68
Did you make the changes to common.php?
MartectX wrote:Muad''Dib wrote:Well i thought i got rid of all the old traces of the previous version and then installed the latest, however it really screwed up the board's layout. Like it couldn't pull the style or something.
I have isolated the problem and asked for help in the MOD writers' section. Thanks for mentioning it (I don't like proSilver so I didn't notice it *g*)!
Here is a workaround:
OPEN includes/cache.php
FIND
- Code: Select all
$config['board_dst'] = automatic_dst_cache($config['board_timezone']);
REPLACE WITH
- Code: Select all
if (version_compare(PHP_VERSION, '5.2.0'))
{
date_default_timezone_set($config['board_timezone']);
}
else
{
putenv ('TZ=' . $config['board_timezone']);
}
$config['board_dst'] = date('I');
Muad''Dib wrote:Ahh great that fixed it.
Here is my feedback thus far.
ITS FANTASTIC!
Muad''Dib wrote:Honestly, i'm not to keen on what the verbiage for the time zone is. I would prefer (and this is definitely personal preference) for it to look exactly as phpbb already does. So for example, for my time zone America/Los_Angeles it would show [UTC -8] Pacific Time. Going even further it would be really cool (and i know it would be a lot of work) If when DST is in effect It would say [UTC -8] Pacific Daylight Savings Time... but when its not in effect it would say [UTC -8] Pacific Standard Time. Again, i know it would be a lot of work so if you were willing to come up with the code, i would be willing to populate the verbiage \ text. Other than that, it showing America/Los_Angeles or whatever timezone the user is in is fine and works.
****EDIT****
Actually couldnt that be done with tz and tz_zones in language\en\common.php fairly easily? Port those over to your automatic_dst.php file, and then add / remove as needed?? Just throwing ideas out there.
****END EDIT****
Muad''Dib wrote:One sorta minor detail. When viewing the board as a Guest, the time at the top of the board is whatever the server is set to, but the area that says: All times are America/Los_Angeles [ DST ] (as an example) at the lower right of the page says:
All times are 0.0 [ DST ]. This can easily be remedied by going into the ACP, and manually setting the timezone for the Anonymous user account.
Muad''Dib wrote:Everything works as intended i would say. No problems on my test board.
Return to [3.0.x] MODs in Development
Users browsing this forum: cliftonarms, EverettB, Mess, panhead, stylerro, van de werde, VSE and 35 guests