Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Date formatting in Bandwidth Notification email

Discussion in 'User Experience' started by terraGirl, Aug 4, 2015.

  1. terraGirl

    terraGirl Guest

    I'm looking to modify the "Bandwidth User notification message" as per , but I'm unsure how the data formatting works.

    I want to change MM/DD/YYYY to DD/MM/YYY. The line is:

    <li>[% CPANEL.locale.maketext('The account “[_1]” with primary domain “[_2]” is expected to reach its bandwidth limit on [datetime,_3,date_format_short].', NOTICE.user, NOTICE.user_domain, NOTICE.date_exceeded); %]</li>

    Is there any guidance available how I can change the date format?

    Many thanks!
  2. terraGirl

    terraGirl Guest

    cPanel support have come back via email and the solution is:

    As the template indicates, cPanel uses the locale settings to populate this notice, so what you'll need to do is edit the locale:

    Note that if they're using Paper Lantern then they *must* use the Bulk Mode editor for this. The "CNTMMDDYY" key should be the one that they want to change.

    Very easy via WHM once I knew where to look & which variable to amend :)
  3. cPanelNick

    cPanelNick Administrator Staff Member

    Mar 9, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    terraGirl likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice