The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Date formatting in Bandwidth Notification email

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

  1. terraGirl

    terraGirl Member

    Joined:
    Jan 20, 2011
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    3
    I'm looking to modify the "Bandwidth User notification message" as per https://documentation.cpanel.net/display/ALD/Notification+Templates , 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 Member

    Joined:
    Jan 20, 2011
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    3
    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:

    https://documentation.cpanel.net/display/ALD/Edit+a+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

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    terraGirl likes this.
Loading...

Share This Page