Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • ousset Friend
    #209122

    I tried doing a search to get some assistance to fix my issue but couldnt find any other forum posts that would help.

    My countdown is off. The userguide doesnt really help me any except show me that the installation I just downloaded is a different version of the countdown (my doesnt have a stop time) http://static.joomlart.com/images/userguide/ja_templates/charity/countdown.png

    Im in America central time and have changed the server settings in the admin configuration to Chicago timezone. However my countdown is off. The event is starting 9/6/15 at 10am but looking at the clock it has it starting at 7pm

    I started with the quickstart installation of this template and modified from there.

    Thanks for your help. I really need to get this fixed asap.

    Ninja Lead Moderator
    #578499

    You can try to fix the problem on your site with the solution below

    Open templates/ja_charity/acm/countdown/tmpl/style-1.php file

    + find and change

    $date= new DateTime($helper->get('downdate'));

    to

    $config = JFactory::getConfig();
    $timezone = new DateTimeZone($config->get('offset'));
    $date= new DateTime($helper->get('downdate'), $timezone);
    $offset = $timezone->getOffset($date)/3600;

    + and find

    <script type="text/javascript">
    (function($){
    jQuery(document).ready(function($) {
    $('.countdown').downCount({
    date: '<?php echo $date->format('Y/m/d'); ?> <?php echo $helper->get('downdate-time'); ?>',
    offset: + 7
    }, function () {
    alert('We Ready To Rock Your World');
    });
    });
    })(jQuery);
    </script>

    change to

    <script type="text/javascript">
    (function($){
    jQuery(document).ready(function($) {
    $('.countdown').downCount({
    date: '<?php echo $date->format('Y/m/d'); ?> <?php echo $helper->get('downdate-time'); ?>',
    offset: + <?php echo $offset; ?>
    }, function () {
    alert('We Ready To Rock Your World');
    });
    });
    })(jQuery);
    </script>

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

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 4 months ago.

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