luca_it
•
Advanced
•
402 posts Quote
•
Dec 24, 2009 12:03
•
0 likes
•
 Hi,
This can be a momentary solution for timezone:
Open /inc/header.inc.php
after <? add this line:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here:
http://www.php.net/manual/en/timezones.php
I'm trying it and seems it work...
Let me know
|
LeonidS
•
Administrator
•
680 posts Quote
•
Dec 25, 2009 02:59
•
0 likes
•
 Hello!
Seems need to add something similar for MySQL because for queries using function NOW() may have another values.
Regard |
deano92964
•
Premium
•
4713 posts Quote
•
Dec 25, 2009 03:08
•
0 likes
•
 Does not work for me.
Also LeonidS is correct. It will have no effect on any mysql queries using any mysql built in time and date functions.
To actually get dolphin to work correctly in various time zones, a option for timezone would need to be added to admin, and every date function throughout all the code in dolphin would need to be changed to adjust based on that setting, and all mysql queries will need to be rewritten.
It's a lot of work to add that feature.
Funny things is, alot of software already has this, but dolphin does not.
Dolphin Mods - http://www.boonex.com/unity/extensions/posts/deano92964 |
avantguardia
•
Advanced
•
181 posts Quote
•
Dec 25, 2009 03:47
•
0 likes
•
 Nop, that dont work at all...
This is one of thing that i most talk on the forum last two month... Simply the Boonex team dont hear... And i think that many user of Dolphin script is not in the same country where is the server located, so this is one of the major mistake for Dolphin script, especialy like the Deano says: " Funny things is, alot of software already has this, but dolphin does not. " I dont see any sence from Boonex regarding this. And i promise, i will never mention this problem again since i am borring my self whith this question and regarding IP Black List in the admin part... No point any more, Boonex hear only what they like and that's how fix the thing's... Sad... |
LeonidS
•
Administrator
•
680 posts Quote
•
Dec 25, 2009 03:59
•
0 likes
•
 Hello avantguardia!
BoonEx team hears very well (http://www.boonex.com/trac/dolphin/ticket/600, http://www.boonex.com/trac/dolphin/ticket/1624), we know that it is important thing but as we explained many times - feature will require rewrtitting every query with time/date content. So it's deal only for 7.1 not for 7.0.
Regard |
deano92964
•
Premium
•
4713 posts Quote
•
Dec 25, 2009 04:01
•
1 likes
•
 Actually as i think about this, this should be a per user option where the user selects the time zone they are in. So dolphin just stores everything as normal using the default date of the server, and when dates and times are displayed, they are displayed in the user prefered time zone.
Doing it that way will allow each member of the site regardless of where they are located to see the time and dates in there own time zone. This i believe is how it should be done.
Dolphin Mods - http://www.boonex.com/unity/extensions/posts/deano92964 |
avantguardia
•
Advanced
•
181 posts Quote
•
Dec 25, 2009 04:11
•
1 likes
•

Actually as i think about this, this should be a per user option where the user selects the time zone they are in. So dolphin just stores everything as normal using the default date of the server, and when dates and times are displayed, they are displayed in the user prefered time zone.
Doing it that way will allow each member of the site regardless of where they are located to see the time and dates in there own time zone. This i believe is how it should be done.
Agre with you again... |
avantguardia
•
Advanced
•
181 posts Quote
•
Dec 25, 2009 04:22
•
0 likes
•

Hello avantguardia!
BoonEx team hears very well (http://www.boonex.com/trac/dolphin/ticket/600, http://www.boonex.com/trac/dolphin/ticket/1624), we know that it is important thing but as we explained many times - feature will require rewrtitting every query with time/date content. So it's deal only for 7.1 not for 7.0.
Regard
I have to answer you LeonidS, no hard fillings please... 
BoonEx team hears very well....
http://www.boonex.com/trac/dolphin/ticket/600 --- ticket opened 8 month ago... priority: MAJOR???
http://www.boonex.com/trac/dolphin/ticket/1624 --- ticket opened 1 week ago???... milestone changed from Dolphin 7.0 (Hookie) RC 4 to 7.1.???
Sorry LeonidS, this is very stupid for me, i dont in the programming language that much, but i do know some thing. If 8 month take to fix as you can see MAJOR problem... i dont have a word... I will equip every member of my site with calculator to calculate when they received message +9 hours...
Sorry again...
Regards.
|
deano92964
•
Premium
•
4713 posts Quote
•
Dec 25, 2009 04:28
•
0 likes
•
 I don't mean to jump on boonex's side on this one, but i do understand why this one was pushed to 7.1.
The date function alone is used in 187 dolphin source files appearing 1136 times. And that is just the php calls. This does not include any sql queries.
So the time involved in changing this is very extensive.
Dolphin Mods - http://www.boonex.com/unity/extensions/posts/deano92964 |
luca_it
•
Advanced
•
402 posts Quote
•
Dec 25, 2009 04:43
•
0 likes
•
 for people that have dedicated server:
http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html
This correct mysql timezone, always need the above change in php file! |
luca_it
•
Advanced
•
402 posts Quote
•
Dec 25, 2009 07:10
•
6 likes
•
 good news for all...
I'm trying some trick and this work for all (dedicated + hosting)!
1)open /inc/header.inc.php
after <? add:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here: http://www.php.net/manual/en/timezones.php )
2) Open /inc/classes/BxDolDb.php
locate (around line 86):
$this->res("SET sql_mode = ''");
below this row add:
$this->res("SET time_zone = '+1:00'");
Change +1:00 with your timezone...
Save and upload all....test and let me know!
I haven't tested all but seems It work...
This trick simple set timezone per connection, not per host, in this way u can change timezone without change server's time, in php and even in mysql!
Let me know! |
Scotty501
•
Advanced
•
16 posts Quote
•
Jan 01, 2010 16:11
•
0 likes
•
 Dude you are officially my hero. That worked like a treat! Thank you. |
petarstojkovik
•
Advanced
•
76 posts Quote
•
Jan 23, 2010 12:18
•
0 likes
•
 It worked for me!!!!!
Thanks a lot. I've been trying to fix this with my host for days. Yet, I did it myself in minutes. |
raf696
•
Advanced
•
128 posts Quote
•
Feb 02, 2010 00:50
•
0 likes
•
 Well done Thank you it works. |
mdroca
•
Advanced
•
151 posts Quote
•
Feb 11, 2010 14:41
•
0 likes
•
 Thanks a lot luca!! Works perfect!!! |
SkyForum
•
Premium
•
2405 posts Quote
•
Apr 04, 2010 00:56
•
0 likes
•

good news for all...
I'm trying some trick and this work for all (dedicated + hosting)!
1)open /inc/header.inc.php
after <? add:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here: http://www.php.net/manual/en/timezones.php )
2) Open /inc/classes/BxDolDb.php
locate (around line 86):
$this->res("SET sql_mode = ''");
below this row add:
$this->res("SET time_z alt= '+1:00'");
Change +1:00 with your timezone...
Save and upload all....test and let me know!
I haven't tested all but seems It work...
This trick simple set timezone per connection, not per host, in this way u can change timezone without change server's time, in php and even in mysql!
Let me know!
Ok, I'm lost. My server was set to the proper time zone but Dolphin always added an hour. (23:05 always shows as 00:05) I added your fix and it added another 5 hours. By changing it to -6:00 I was able to make the site show the correct time.
My question is why? Why doesn't Dolphin just reflect the time setup in the server as the default time? Why is it screwed up?
PS, my correct time zone is America/Denver (or mountain time) You know, if I actually knew how to write code, I'd probably be very dangerous..... |
kab
•
Advanced
•
52 posts Quote
•
Apr 08, 2010 03:05
•
0 likes
•
 No it doesnt work!!!
Error
Database query error
Fatal error: Call to a member function getParam() on a
non-object in /home/***/***/inc/db.inc.php on line 83
good news for all...
I'm trying some trick and this work for all (dedicated + hosting)!
1)open /inc/header.inc.php
after <? add:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here: http://www.php.net/manual/en/timezones.php )
2) Open /inc/classes/BxDolDb.php
locate (around line 86):
$this->res("SET sql_mode = ''");
below this row add:
$this->res("SET time_z alt= '+1:00'");
Change +1:00 with your timezone...
Save and upload all....test and let me know!
I haven't tested all but seems It work...
This trick simple set timezone per connection, not per host, in this way u can change timezone without change server's time, in php and even in mysql!
Let me know!
|
JoeWa
•
Advanced
•
602 posts Quote
•
May 24, 2010 05:38
•
0 likes
•

No it doesnt work!!!
Error
Database query error
Fatal error: Call to a member function getParam() on a
non-object in /home/***/***/inc/db.inc.php on line 83
good news for all...
I'm trying some trick and this work for all (dedicated + hosting)!
1)open /inc/header.inc.php
after <? add:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here: http://www.php.net/manual/en/timezones.php )
2) Open /inc/classes/BxDolDb.php
locate (around line 86):
$this->res("SET sql_mode = ''");
below this row add:
$this->res("SET time_z alt= '+1:00'");
Change +1:00 with your timezone...
Save and upload all....test and let me know!
I haven't tested all but seems It work...
This trick simple set timezone per connection, not per host, in this way u can change timezone without change server's time, in php and even in mysql!
Let me know!
It appeared to work, but I had a cron job report to say there was a non-object non-object in /inc/db.inc.php
on line 83
I've since change my server time using WHM and also in mySql in select now(). Everything is correct... at least to MY timezone anyway. What's with Dolphin not originally opting for the user's timezone anyway? Yes, it'd be lots of work to correct all the instances now, but originally? Shame! Maybe in a future release. |
Davidraynor
•
Advanced
•
1 posts Quote
•
Jun 22, 2010 20:47
•
0 likes
•
 Hi,
I am not a programmer, but surely if a member chooses their time zone on registration, with the default time zone being GMT, this can not be too difficult to write code for. All other major social networking software has this. By now you should be able to buy a module for this. So why doesn't someone design one for Boonex members?
I am in Australia so we are a day ahead of the USA.......frustrating!!!
Cheers |
deano92964
•
Premium
•
4713 posts Quote
•
Jun 22, 2010 21:11
•
0 likes
•
 Because it can't be done with a module.
Adding timezone functions will require code rewrites to dolphin. Easy to do perhaps. But will require hours of work locating every location in dolphin where time is used to make changes. This of course will make upgrading dolphin a nightmare because the upgrade will destroy all of the code changes. So this is a feature that boonex themselves should do.
This i believe is a feature they have slated for version 7.1
Dolphin Mods - http://www.boonex.com/unity/extensions/posts/deano92964 |
jordiG
•
Advanced
•
1 posts Quote
•
Jun 30, 2010 10:13
•
0 likes
•

good news for all...
I'm trying some trick and this work for all (dedicated + hosting)!
1)open /inc/header.inc.php
after <? add:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here: http://www.php.net/manual/en/timezones.php )
2) Open /inc/classes/BxDolDb.php
locate (around line 86):
$this->res("SET sql_mode = ''");
below this row add:
$this->res("SET time_z alt= '+1:00'");
Change +1:00 with your timezone...
Save and upload all....test and let me know!
I haven't tested all but seems It work...
This trick simple set timezone per connection, not per host, in this way u can change timezone without change server's time, in php and even in mysql!
Let me know!
THANKS ! ! ! ! WORK ! ! ! |
DeeEmm
•
Advanced
•
818 posts Quote
•
Aug 03, 2010 00:05
•
0 likes
•
 In addition to Luca's posts bove, you also need to change the timezone for the forums too, as this uses a different database connection.
For 7.0.2 do this...
edit
modules/boonex/forums/classes/Forum.php
Add to top of file...
date_default_timezone_set("Australia/Adelaide");
edit
modules/boonex/forums/classes/BxDB.php
find
mysql_query ("SET NAMES 'utf8'", $this->link);
add underneath
mysql_query ("SET time_z alt= '+9:30'", $this->link);
Now all posts made in forum will have correct timezone too.
/DM
Dolphin - Ajax Masturbation |
DeeEmm
•
Advanced
•
818 posts Quote
•
Aug 03, 2010 00:15
•
0 likes
•

Adding timezone functions will require code rewrites to dolphin. Easy to do perhaps. But will require hours of work locating every location in dolphin where time is used to make changes. This of course will make upgrading dolphin a nightmare because the upgrade will destroy all of the code changes. So this is a feature that boonex themselves should do.
This i believe is a feature they have slated for version 7.1
Deano - the fix given by Luca actually works as it changes the timezone for SQL - no need to change all instances of now() - jut set time_zone for SQL connection once - when making the database connection. Fortunately Boonex use persistent database connections so it remains set.
To expand on this - all that needs to be added is one admin field - to set the default timezone, and a user selection in profile for users to set their timezone.
On my site I have added timezone selection automatically based on the users state - a field I already had available.
So in summary - no need to wait for Dolphin 7.1 - it's a relatively easy thing to add in - just a few lines of code - I say promote it back to 7.0.3 !!!!
/DM Dolphin - Ajax Masturbation |
sergey14
•
Advanced
•
95 posts Quote
•
Aug 05, 2010 05:53
•
0 likes
•

No it doesnt work!!!
Error
Database query error
Fatal error: Call to a member function getParam() on a
non-object in /home/***/***/inc/db.inc.php on line 83
good news for all...
I'm trying some trick and this work for all (dedicated + hosting)!
1)open /inc/header.inc.php
after <? add:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here: http://www.php.net/manual/en/timezones.php )
2) Open /inc/classes/BxDolDb.php
locate (around line 86):
$this->res("SET sql_mode = ''");
below this row add:
$this->res("SET time_z alt= '+1:00'");
Change +1:00 with your timezone...
Save and upload all....test and let me know!
I haven't tested all but seems It work...
This trick simple set timezone per connection, not per host, in this way u can change timezone without change server's time, in php and even in mysql!
Let me know!
It appeared to work, but I had a cron job report to say there was a non-object non-object in /inc/db.inc.php
on line 83
I've since change my server time using WHM and also in mySql in select now(). Everything is correct... at least to MY timezone anyway. What's with Dolphin not originally opting for the user's timezone anyway? Yes, it'd be lots of work to correct all the instances now, but originally? Shame! Maybe in a future release.
I also get error messages in /inc/db.inc.php on line 83 how to solve this problem? |
Jared Nomak
•
Advanced
•
2 posts Quote
•
Aug 29, 2010 11:15
•
0 likes
•

In addition to Luca's posts bove, you also need to change the timezone for the forums too, as this uses a different database connection.
For 7.0.2 do this...
edit
modules/boonex/forums/classes/Forum.php
Add to top of file...
date_default_timezone_set("Australia/Adelaide");
edit
modules/boonex/forums/classes/BxDB.php
find
mysql_query ("SET NAMES 'utf8'", $this->link);
add underneath
mysql_query ("SET time_z alt= '+9:30'", $this->link);
Now all posts made in forum will have correct timezone too.
/DM
This not run for me :(
I need change the timedate for the Forum Pls
I need 7 Hours more :(
Could u Help me? |
sergey14
•
Advanced
•
95 posts Quote
•
Aug 29, 2010 17:36
•
0 likes
•

In addition to Luca's posts bove, you also need to change the timezone for the forums too, as this uses a different database connection.
For 7.0.2 do this...
edit
modules/boonex/forums/classes/Forum.php
Add to top of file...
date_default_timezone_set("Australia/Adelaide");
edit
modules/boonex/forums/classes/BxDB.php
find
mysql_query ("SET NAMES 'utf8'", $this->link);
add underneath
mysql_query ("SET time_z alt= '+9:30'", $this->link);
Now all posts made in forum will have correct timezone too.
/DM
This not run for me :(
I need change the timedate for the Forum Pls
I need 7 Hours more :(
Could u Help me?
you need to go to VPS |
tazz
•
Advanced
•
68 posts Quote
•
Aug 30, 2010 00:28
•
0 likes
•

Actually as i think about this, this should be a per user option where the user selects the time zone they are in. So dolphin just stores everything as normal using the default date of the server, and when dates and times are displayed, they are displayed in the user prefered time zone.
Doing it that way will allow each member of the site regardless of where they are located to see the time and dates in there own time zone. This i believe is how it should be done.
Agre with you again...
agreed |
WESWAYS
•
Advanced
•
96 posts Quote
•
Oct 06, 2010 21:05
•
0 likes
•
 this did not work for me hhmm
anyone else got anyother suggestions that may work
i get the database error like describbed above |
wc20037
•
Advanced
•
25 posts Quote
•
Nov 26, 2010 15:12
•
0 likes
•
 I got the same problem:
Fatal error: Call to a member function getParam() on a non-object in /home/......./inc/db.inc.php on line 83
|
jslx7
•
Advanced
•
20 posts Quote
•
Feb 24, 2011 00:10
•
0 likes
•

In addition to Luca's posts bove, you also need to change the timezone for the forums too, as this uses a different database connection.
For 7.0.2 do this...
edit
modules/boonex/forums/classes/Forum.php
Add to top of file...
date_default_timezone_set("Australia/Adelaide");
edit
modules/boonex/forums/classes/BxDB.php
find
mysql_query ("SET NAMES 'utf8'", $this->link);
add underneath
mysql_query ("SET time_z alt= '+9:30'", $this->link);
Now all posts made in forum will have correct timezone too.
/DM
Thank's a lot! In 7.0.5. all is displaying correctly now. The Orca forums however did not change a bit ?! Any ideas?
Regards, Jarmo |
italian-backtracker
•
Premium
•
0 posts Quote
•
Feb 26, 2011 19:07
•
0 likes
•
 In 7.0.5 on TDM Hosting this works fine!!!
VAI LUCA_IT!!!!!!!!!!!!!!!! |
freakpower
•
Advanced
•
592 posts Quote
•
Feb 27, 2011 07:48
•
0 likes
•
 did somebody found any permanent solutionj for this including orca ? Im waiting for proper timezone setting in backend for a year and timezones tickets is always postponed from version to next version, I hope it gets fixed for real in 7.1 but as we have no info about 7.1 it can be done easily at end of a year as its massive update and I cant wait aniother year... |
cupido_it
•
Advanced
•
27 posts Quote
•
Mar 04, 2011 06:06
•
0 likes
•
 Here is my feedback on this trick!
I have two different dolphin community site, one based on 7.0.4 and one based on a fresh 7.0.5 version working on the SAME HOSTING PROVIDER better in the SAME SERVER (same s.o., same php configuration,same mysql)
So in 7.05. works like a charm (not tested yet forum), but on 7.0.4 message is DATABASE CONNECTION ERROR and nothing to do!
I finish this work, testing also forum connection, and give you guys my final feedback later
CUPIDO
|
cupido_it
•
Advanced
•
27 posts Quote
•
Mar 05, 2011 05:14
•
0 likes
•
 UPDATE FINAL FEEDBACK!
After trying well on both versions, i can confirm that this trick about timezone is working properly on 7.0.4 and on 7.0.5 without problems.
By contrast, the connections to the forum does not work on both versions on the forum and the dates remain unchanged.
CUPIDO
|
adus
•
Advanced
•
9 posts Quote
•
Apr 01, 2011 07:08
•
0 likes
•
 Ciao Luca,
io ho Dolphin 7.0.6 e non riesco a trovare
$this->res("SET sql_mode = ''");
in
/inc/classes/BxDolDb.php
nei pressi della linea 86
|
jslx7
•
Advanced
•
20 posts Quote
•
Apr 07, 2011 04:51
•
0 likes
•

In addition to Luca's posts bove, you also need to change the timezone for the forums too, as this uses a different database connection.
For 7.0.2 do this...
edit
modules/boonex/forums/classes/Forum.php
Add to top of file...
date_default_timezone_set("Australia/Adelaide");
edit
modules/boonex/forums/classes/BxDB.php
find
mysql_query ("SET NAMES 'utf8'", $this->link);
add underneath
mysql_query ("SET time_z alt= '+9:30'", $this->link);
Now all posts made in forum will have correct timezone too.
/DM
WHy does not these changes do ANYTHING in my orca forums? Timezone setting works just fine in the DOlphin but NOT in the orca forum. Orca has no effect att all dispite the settings....
Regards, Jarmo
|
adus
•
Advanced
•
9 posts Quote
•
Jun 02, 2011 16:22
•
0 likes
•
 For Dolphin 7.0.6
1) open /inc/header.inc.php
after <? add:
date_default_timezone_set('Europe/Rome');
Change Europe/Rome with your timezone (you can find supported timzone here: http://www.php.net/manual/en/timezones.php )
2) Open /inc/classes/BxDolDb.php
locate (around line 89):
mysql_query("SET sql_mode = ''", $this->link);
below this row add:
mysql_query("SET time_zone = '+2:00'", $this->link); |
jslx7
•
Advanced
•
20 posts Quote
•
Jul 25, 2011 06:43
•
0 likes
•
 So sorry. in my 7.0.5. Orca does NOT want to show the correct time.... it just keeps living 10 hours earlier than my users.....  |
jslx7
•
Advanced
•
20 posts Quote
•
Aug 01, 2011 07:55
•
0 likes
•
 Got it at last! This is a working scenario for this problem:
http://www.boonex.com/trac/dolphin/wiki/GenFAQ
And DO NOT forget to recompile languages after the change. It won't work otherwise....  |
dimknaf
•
Advanced
•
33 posts Quote
•
Oct 04, 2011 09:27
•
0 likes
•
 i did everything as it is said in the document, but the time is not presented correctly.
I the last forum posts at homepage is +2hours and inside the forum is -1hour.
For php I choose Europe/Athens and at sql stuff i choose +2, as athens time is gmt+2
My server is arvixe. I find it strange. What did i do wrong?
check it at my site if you want http://www.getpaid.gr
Thank you! |
dimknaf
•
Advanced
•
33 posts Quote
•
Oct 04, 2011 09:34
•
0 likes
•
 i did everything as it is said in the document, but the time is not presented correctly.
I the last forum posts at homepage is +2hours and inside the forum is -1hour.
For php I choose Europe/Athens and at sql stuff i choose +2, as athens time is gmt+2
My server is arvixe. I find it strange. What did i do wrong?
check it at my site if you want http://www.getpaid.gr
Thank you! |
dimknaf
•
Advanced
•
33 posts Quote
•
Oct 04, 2011 09:34
•
0 likes
•
 i did everything as it is said in the document, but the time is not presented correctly.
I the last forum posts at homepage is +2hours and inside the forum is -1hour.
For php I choose Europe/Athens and at sql stuff i choose +2, as athens time is gmt+2
My server is arvixe. I find it strange. What did i do wrong?
check it at my site if you want http://www.getpaid.gr
Thank you! |