We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36426
    • 197 Posts
    The start and end times are showing the current date and time rather than the date and time of the event.

    The demo, http://charlesmx.com/mxcalendar-demo.html, is also behaving the same way.

    The tplDetail chunk, and the placeholders look good : [[+startdate_fstamp:date=`%b %e %l:%M %p`]] - [[+enddate_fstamp:date=`[[+durDay:notempty=`%b %e `]] %l:%M %p`]]

    So, anyone have any ideas as to why this might be happening?
    Thanks!

    --

    Hi the above is a summary of this thread: http://forums.modx.com/thread/86514/mxcalendar-detail-view-showing-current-date-time#dis-post-481888

    which seems to be a problem also on GitHub too - can anyone please help fix this?
      Yorkshire UK based hosting provider: https://www.simulant.uk
      • 44165
      • 20 Posts
      I came up with a solution that seems to be working fine. In core>components>mxcalendars>elements>chunks>detail.chunk.tpl, I changed
      [[+startdate_fstamp:date=`%b %e %l:%M %p`]] - [[+enddate_fstamp:date=`[[+durDay:notempty=`%b %e `]] %l:%M %p`]]
      

      to
      [[+startdate:date=`%l:%M %p`]] - [[+enddate:date=`[[+durDay:notempty=`%b %e `]] %l:%M %p`]]

      I noticed that the time was correct in the list view, so I copied those time calls to the detail tpl. I actually made a new detail tpl and added it to the mxcalendar call. Hope this helps!
      • this is a bug, your solution is valid solution in that case. The issue is resolved in release 1.1.10-pl coming out soon, currently in beta.

        Cheers
          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.