Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • mrjon Friend
    #206694

    I would like the date format on the JA ACM to read ‘day / month / year’. How do I resolve this?

    pavit Moderator
    #572099

    Hi

    Open this file templatesja_charityacmcountdowntmplstyle-1.php and change date format

    date: '<?php echo $date->format('Y/m/d'); ?> <?php echo $helper->get('downdate-time'); ?>',

    pavit Moderator
    #737139

    Hi

    Open this file templatesja_charityacmcountdowntmplstyle-1.php and change date format

    date: '<?php echo $date->format('Y/m/d'); ?> <?php echo $helper->get('downdate-time'); ?>',

    mrjon Friend
    #572104

    If I switch this to ‘d/m/Y’ the date doesn’t change, the countdown stops working and I get the alert ‘We Ready To Rock Your World’ as a pop up?

    mrjon Friend
    #737144

    If I switch this to ‘d/m/Y’ the date doesn’t change, the countdown stops working and I get the alert ‘We Ready To Rock Your World’ as a pop up?

    pavit Moderator
    #572111

    Hi

    Sorry i misunderstood your question

    Countdown is a JA Acm module and it takes configuration from a JS ytemplatesja_charityjsdown-countjquery.downCount.js

    as you can see from file content changing the countdown settings to allow to show M/Y too it requires to modify the JS code

    I can submit your request to Joomlart’s developers to see if would possible to add this feature as an available option into a new release of the JA ACM Countdown type module.

    pavit Moderator
    #737151

    Hi

    Sorry i misunderstood your question

    Countdown is a JA Acm module and it takes configuration from a JS ytemplatesja_charityjsdown-countjquery.downCount.js

    as you can see from file content changing the countdown settings to allow to show M/Y too it requires to modify the JS code

    I can submit your request to Joomlart’s developers to see if would possible to add this feature as an available option into a new release of the JA ACM Countdown type module.

    mrjon Friend
    #572159

    Ok, that would be good.

    Just to be clear, it’s not the countdown but the date I’m looking at changing. I can delete the js file you mention and the date still works, just not in the order I require which is the UK format – day, then month, then year.


    1. Screen-Shot-2015-05-28-at-09.29.52
    Saguaros Moderator
    #573382

    Hi guys,

    It should not relate to the js file, if you want to change the format date, try with this tweak:
    – Open the file: root/templates/ja_charity/acm/countdown/tmpl/style-1.php
    – Look for this code:


    <?php if($helper->get('downdate')): ?>
    <?php echo $helper->get('downdate'); ?>
    <?php endif; ?>

    Replace it with:


    <?php if($helper->get('downdate')): ?>
    <?php $revertDate = explode('-', $helper->get('downdate'));
    echo $revertDate[2] . '-' . $revertDate[1] . '-' . $revertDate[0];
    ?>
    <?php endif; ?>

    And rollback the change in the formate ‘Y/m/d’ in the #2 post of Pavit if you’ve changed

    brandpropaganda Friend
    #891897

    Hi,
    I did not locate the line edit date in style1.php

    Saguaros Moderator
    #891918

    You can open above file with an editor like Notepad++ or others, then make a search to find these lines of code.

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 10 replies, has 4 voices, and was last updated by  Saguaros 8 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum