Skip to main content

POST notification wrong time and no host address

Comments

2 comments

  • cPanelMichael
    Hello, 1. As far as the hostname entry, could you verify that your server's hostname is properly listed in "WHM >> Change Hostname"? 2. You'd need to customize the notification template to utilize a different time zone if you want to use something other than UTC. We document how to customize the notification templates at: Notification Templates - Documentation - cPanel Documentation For example, to change the dates/times that appear in notifications, you'd first run the following commands to copy the origin_info.html.tmpl template file to the customization location: mkdir -p /var/cpanel/templates/icontact_templates/include cp -a /usr/local/cpanel/etc/icontact_templates/include/origin_info.html.tmpl /var/cpanel/templates/icontact_templates/include/
    Then, edit the template file with a command line editor such as "vi": vi /var/cpanel/templates/icontact_templates/include/origin_info.html.tmpl
    The entry you need to modify is:

    [% CPANEL.locale.maketext('The system generated this notice on [_1] at [_2] [asis,UTC].', CPANEL.iso_date(), CPANEL.iso_time()) %]


    Thank you.
    0
  • Vijai
    Thank you for the link and guide Michael! The hostname is empty only for test notification while the real notification contains the hostname. I'll try to change the timezone. Regards, Vijai
    0

Please sign in to leave a comment.