How to overwrite the core file to remove the timezone from the print to pdf file, How can we do this through the customization?

How to overwrite the core file to remove the timezone from the print to pdf file, How can we do this through the customization?

Path: sugar\modules\Reports\sugarpdf\sugarpdf.reports.php

Code :  $this->SetHeaderData(PDF_SMALL_HEADER_LOGO, PDF_SMALL_HEADER_LOGO_WIDTH, $this->bean->name, $timedate->getNow(true)"));

$timedate->getNow(true) instead of this we need to replace "date("D M j G:i:s")

Parents
  • Hi

    May be you need to change your PHP ini file, in the timezone config section.
    You can overwrite the config file, there is a config file inside SugarCRM core and it is editable (config_override.php) this if your site is an OnSite version.
    Or you can check your OS timezone configuration.
    The function getNow() I think gives you the current and the system time and there are many ways of format that date.
    If you want hide the printed date in the pdf file or modify the config, I hope this be useful for you:
    support.sugarcrm.com/.../

    Regards.

Reply
  • Hi

    May be you need to change your PHP ini file, in the timezone config section.
    You can overwrite the config file, there is a config file inside SugarCRM core and it is editable (config_override.php) this if your site is an OnSite version.
    Or you can check your OS timezone configuration.
    The function getNow() I think gives you the current and the system time and there are many ways of format that date.
    If you want hide the printed date in the pdf file or modify the config, I hope this be useful for you:
    support.sugarcrm.com/.../

    Regards.

Children