Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • timtecsa Friend
    #983930

    How to fix crazy dates and times showing incorrectly ? http://printindustrynews.com/en/events/967-xerox-spark-innovation-expo-on-17-november-2016


    1. events1
    timtecsa Friend
    #984216

    The date works now after @ninjalead mod but Time still doesn’t.

    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’,”));

    John Friend
    #984351

    Tim,

    I have had the same problem with events dates along with quite a few others, such as mouse over editing etc., and rear end CSS & JS errors. I have restored an older version of Joomla and am staying there until there is a ja teline update for Joomla 3.6.4.

    I will save on doing patches to patch my own fixes for the future.

    John

    Ninja Lead Moderator
    #984759

    Hi Tim,

    I changed the configuration from Event page on your site and it needs to work with Event layout of JA Teline V template style: http://prntscr.com/d4zd20 and I assigned Event page with ja_teline_v – Events template style and now, you can see it’s working as well on your site

    Regards

    timtecsa Friend
    #984884

    Hi Tam,

    I still get wrong closing date (18th) on http://printindustrynews.com/en/events and no Times.

    And map error ? And small screen logo misplaced.

    Tim


    1. eventsdate2
    2. events_smalllogo
    Ninja Lead Moderator
    #985045

    Hi Tim,

    I see you added the small logo on your site http://prntscr.com/d5cvcx

    About the wrong date on your site, I just fixed it from /ja_teline_v/html/layouts/joomla/content/item/event.php file with added new format date d F Y H:i to start time and end time. Now, it’s working as well: http://prntscr.com/d5cwgo

    About the google map problem on your site, the Google map does not support non-key on Google Map that’s why your site didn’t load the map on your site and follow step below to get the key of Google map

    • Go to this link: https://developers.google.com/maps/documentation/javascript/get-api-key and get the API with your domain

    • Open /ja_teline_v/html/layouts/joomla/content/item/event.php file
      find and change

      http://maps.google.com/maps/api/js?sensor=false

      to

      https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap

      with YOUR_API_KEY: the key from Google Map with your domain

    Hope it helps

    Regards

    timtecsa Friend
    #985235

    Hi Tam,

    Your screenshot still shows wrong end date (should be 17th) and completely wrong Times. See the article intro text. I find that the dates go wrong if I add times but OK if I don’t. Smells like a BUG !

    Thanks for the map API info. I’ll add it.

    Tim

    Ninja Lead Moderator
    #985337

    Hi Tim,

    This is not a bug from our product, I checked on "Xerox – SPARK Innovation Expo on 17 November, 2016" article and saw end time has been changed to 17th: http://prntscr.com/d5rhm7 and front-end: http://prntscr.com/d5rhqk. The time shows here from Event Info tab with start time and end time from backend of your site: http://prntscr.com/d5rhm7

    Regards

    timtecsa Friend
    #985350

    Hi Tam,

    Did you try putting in the correct Start and End times, namely 09.30 and 18.00 ? I have and upon Save the end Date goes to 18th and no Times at all are shown in front end.

    Tim

    Ninja Lead Moderator
    #985976

    Hi Tim,

    I didn’t change the content on your article if you don’t want to show time on your event, you can remove H:i from format date: format date (d F Y H:i) from this post here

    Hope it helps

    Regards

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

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

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