Fix local time to db time
Fix local time to db time

(cherry picked from commit 09f1a2f)

(cherry picked from commit 1f3e260)

(cherry picked from commit ce3dd1a)

ChangezKhan/SuiteCRM,JanSiero/SuiteCRM,cumanacr/SuiteCRM,horus68/SuiteCRM-Horus68,salesagility/SuiteCRM,dfstrauss/SuiteCRM,willrennie/SuiteCRM,gody01/SuiteCRM,dfstrauss/SuiteCRM,samus-aran/SuiteCRM,lionixevolve/LionixCRM,JanSiero/SuiteCRM,JanSiero/SuiteCRM,daniel-samson/SuiteCRM,gody01/SuiteCRM,willrennie/SuiteCRM,willrennie/SuiteCRM,lionixevolve/LionixCRM,JimMackin/SuiteCRM,pribeiro42/SuiteCRM,JimMackin/SuiteCRM,salesagility/SuiteCRM,MikeyJC/SuiteCRM,pgorod/SuiteCRM,dfstrauss/SuiteCRM,lionixevolve/LionixCRM,Dillon-Brown/SuiteCRM,gody01/SuiteCRM,MikeyJC/SuiteCRM,pgorod/SuiteCRM,JimMackin/SuiteCRM,horus68/SuiteCRM-Horus68,cumanacr/SuiteCRM,dfstrauss/SuiteCRM,pribeiro42/SuiteCRM,gcoop-libre/SuiteCRM,JimMackin/SuiteCRM,cumanacr/SuiteCRM,MikeyJC/SuiteCRM,lionixevolve/LionixCRM,samus-aran/SuiteCRM,daniel-samson/SuiteCRM,Dillon-Brown/SuiteCRM,lionixevolve/SuiteCRM,salesagility/SuiteCRM,lionixevolve/SuiteCRM,pgorod/SuiteCRM,lionixevolve/LionixCRM,gcoop-libre/SuiteCRM,pgorod/SuiteCRM,JanSiero/SuiteCRM,horus68/SuiteCRM-Horus68,Dillon-Brown/SuiteCRM,pribeiro42/SuiteCRM,daniel-samson/SuiteCRM,lionixevolve/SuiteCRM,samus-aran/SuiteCRM,lionixevolve/SuiteCRM,Dillon-Brown/SuiteCRM,gody01/SuiteCRM,lionixevolve/LionixCRM,cumanacr/SuiteCRM,samus-aran/SuiteCRM,daniel-samson/SuiteCRM,ChangezKhan/SuiteCRM,salesagility/SuiteCRM,horus68/SuiteCRM-Horus68,willrennie/SuiteCRM,ChangezKhan/SuiteCRM,gcoop-libre/SuiteCRM,MikeyJC/SuiteCRM,ChangezKhan/SuiteCRM,pribeiro42/SuiteCRM,gcoop-libre/SuiteCRM