Symptoms

Provider has the English locale installed in PBA and they want to have the American date format ("mm-dd-yy") in the Control Panel and in the Online Store.

Resolution

Follow the steps below to change date format in the PBA Control Panel and the Online Store.

Important: do not modify localization files shipped with PBA, they will be overwritten during PBA upgrade. E.g. do not modify the locale.en file in case of English locale or locale.fr in case of French locale. Instead, create custom localization files which will be loaded by PBA on start.

The instruction below assumes that English locale is installed, the main localization file is locale.en in this case.

Control Panel

PBA for Linux

  1. Create the new localization file /usr/local/bm/conf/locale/locale.en.dateformat on the PBA Application Server with the following content:

    "&datetime_format_date" "%m-%d-%Y"
    "&datetime_format_datelong" "%b-%d-%Y"
    "&datetime_format_datetime" "%m-%d-%Y %H:%M"
    "&datetime_format_datetimelong" "%b-%d-%Y %H:%M"
    "&datetime_format_datetimesec" "%m-%d-%Y %H:%M:%S"
    "&datetime_format_datetimeseclong" "%b-%d-%Y %H:%M:%S"
    "&datetime_format_orderdate" "%m-%d-%Y"
    "&datetime_format_time" "%H:%M"
    "&datetime_format_timesec" "%H:%M:%S"
    "&datetime_format_worddate" "%b-%d-%Y y."
    
  2. Restart PBA service to apply changes:

    # /etc/init.d/pba restart
    

PBA for Windows

The instructions below assume that PBA is installed in the default folder, C:\Program Files\Parallels\PBA, so the value of the '$PBA_ROOT' parameter in the article is C:\Program Files\Parallels\PBA. If PBA is installed in a non-default folder, change the value of the parameter '$PBA_ROOT' to the actual one.

  1. Create the new localization file $PBA_ROOT\conf\locale\locale.en.dateformat on the PBA Application Server with the following content:

    "&datetime_format_date" "%m-%d-%Y"
    "&datetime_format_datelong" "%b-%d-%Y"
    "&datetime_format_datetime" "%m-%d-%Y %H:%M"
    "&datetime_format_datetimelong" "%b-%d-%Y %H:%M"
    "&datetime_format_datetimesec" "%m-%d-%Y %H:%M:%S"
    "&datetime_format_datetimeseclong" "%b-%d-%Y %H:%M:%S"
    "&datetime_format_orderdate" "%m-%d-%Y"
    "&datetime_format_time" "%H:%M"
    "&datetime_format_timesec" "%H:%M:%S"
    "&datetime_format_worddate" "%b-%d-%Y y."
    
  2. Restart PBA:

    net stop ssm
    net start pba
    

After the steps above have been performed, you will have the date format "mm-dd-yy" in the PBA Control Panel.

Online Store

Follow the steps below to change the way the date is displayed in the Online Store (e.g. in the order details on the checkout screen):

  1. In the PBA Provider Control Panel go to Product Director > Online Store Manager > Languages

  2. Click on the required language

  3. Switch to the Dictionary tab

  4. Edit the translation of the &datetime_format_date entry (word):

    For example, change translation from '%d/%m/%Y' to '%m/%d/%Y' for the date to be displayed in the format month/day/year.

  5. Synchronize the Online Store at Product Director > Online Store Manager > Synchronization Settings > Synchronize button

If the changes are required for the resellers store, the same steps are to be done in the PBA Reseller Control Panel.

Internal content