Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • laoracion Friend
    #963260

    Why start time and end time is always "today"????

    How can i fix it????


    1. eventsTime
    Ninja Lead Moderator
    #963753

    Hi,

    If possible, you can give me the URL and admin login backend of your site via private reply. I will check further

    Regards

    laoracion Friend
    #963907
    This reply has been marked as private.
    Ninja Lead Moderator
    #964185

    I fixed the problem on your site with the solution below

    Open templates/ja_teline_v/html/layouts/joomla/content/item/event.php file

    find and change

    $config = JFactory::getConfig();
    $tz = new DateTimeZone($config->get('offset'));
    $date_start = new JDate($item->params->get('ctm_start',''));
    $date_end = new JDate($item->params->get('ctm_end',''));

    to

    $config = JFactory::getConfig();
    $attribs = new JRegistry($item->attribs);
    $tz = new DateTimeZone($config->get('offset'));
    $date_start = new JDate($attribs->get('ctm_start',''));
    $date_end = new JDate($attribs->get('ctm_end',''));

    Now, you can see the event date is working as well on your site


    1. Screen-Shot-2016-08-30-at-15.47.07
Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Ninja Lead 7 years, 8 months ago.

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