Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • islandview Friend
    #918765

    Hello I came here to report this issue… it seems the countdown pulls its time simply from the local client machine… so here I am in a coffee shop on my Mac.. countdown says 2hrs… if I change my Mac time to a day forward, all of a sudden, the countdown is finished.

    Is there a way to get this module timer to use the server / Joomla time setting so that we (web admins) have control over it?

    Ninja Lead Moderator
    #919755

    Hi,

    JA Promo Bar module gets the server time of your hosting and you can get it from modules/mod_japromobar/tmpl/default.php file

    /*Countdown document: http://hilios.github.io/jQuery.countdown/documentation.html*/
    /*Convert to UTC time*/
    $serverTZ = new DateTimeZone(date('e'));
    $utcTZ = new DateTimeZone('UTC');
    $date = new DateTime($params->get('countdown_end_date'), $serverTZ);
    $date->setTimezone($utcTZ);

    Regards

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

This topic contains 1 reply, has 2 voices, and was last updated by  Ninja Lead 8 years, 6 months ago.

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