Some problems with (scheduled) reports - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18) +--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4) +--- Thread: Some problems with (scheduled) reports (/showthread.php?tid=1218) |
Some problems with (scheduled) reports - Guido1982 - 08-21-2018 I'm experiencing some problems with reports:
RE: Some problems with (scheduled) reports - joebordes - 08-22-2018 1.- Fixed Thanks!! 2.- We fixed this issue on vtigercrm and it was one of the first things we added to coreBOS. I just tried it on my test install with a date between filter and the conditions were applied correclty to the report in the email. You say that you are fltering on picklists. Picklist filters are really special and hard to get right. They are based on the default language of the user creating the report and the one executing it. This is because the values show translated but may be saved in some other language. So maybe you issue is with that. Lorida just finished a feature to get the picklist searches right. It still needs a few tweeks but it is working really well. I accepted the changes a few days ago, so you may want to try that and see how it works out. 3.- The time is calculated here. Since there is no other processing I understand that it is based on the $default_timezone variable in config.inc.php. Be careful chaning this variable as it will affect all the dates in the application, especially the calendar. RE: Some problems with (scheduled) reports - Guido1982 - 08-22-2018
RE: Some problems with (scheduled) reports - joebordes - 08-22-2018 wow, a lot of questions!
RE: Some problems with (scheduled) reports - Guido1982 - 08-22-2018 I don't understand a lot of this so there are many questions that come to mind. I should dig into getActiveAdminUser then. I always thought that function returned the first user (lowest ID) that is admin and active, is that correct? So basically with the new change, we should have a better chance of getting the correct scheduled report using only the translated picklist values? That would be cool. So I could use Europe/Amsterdam in the $default_timezone? We are UTC+1 in winter and UTC+2 in summer so if UTC (which $default_timezone is now) is used by scheduled reports that would explain the 2 hour difference. But would setting the timezone to Europe/Amsterdam take the summer/winter time into account? RE: Some problems with (scheduled) reports - joebordes - 08-22-2018 getActiveAdminUser => yes, correct Yes, correct, I think we solved the picklist translation search issue PHP takes care of DST for you, that works correctly as long as your server's timezone information is up to date. As I said before, be careful, all your current calendar events are saved in using the default_timezone you have configured, you cannot just change that in the config.inc.php and expect all the dates to magically update to the new timezone. RE: Some problems with (scheduled) reports - Guido1982 - 08-24-2018 Well apart from my Schedular module no calendar events have been saved at all. The calendar is not being used. If I remember correctly we've been having issues with times in all sorts of ways. I mean, it won't mess up anything in the database I guess. To me it makes sense to set the timezone to the one the system is actuelly being used. Let me try it and get back to you. RE: Some problems with (scheduled) reports - Guido1982 - 09-11-2018 Just testing some things on my development install: PHP Code: php -r "@date_default_timezone_set('Europe/Amsterdam');echo date('d-m-Y H:i:m');" PHP Code: php -r "@date_default_timezone_set('UTC');echo date('d-m-Y H:i:m');" But I still don't get this. All records I create still have a time set two hours early. I changes the timezone in both config.inc.php and even in php.ini. EDIT My bad, didn't set the timezone for the user there. |