I have very little knowledge of javascript. I'm calling an API on my band's website to display event dates that are entered into our band's scheduling system called Muzodo. However, even though the dates are displaying correctly within our system, the dates are showing up 1 day behind on our website (i.e. the event date is March 15, but our site is showing March 14). Is there a simple fix/something I can add to my existing code that will adjust the date by 1 day?
The site is hosted on Wordpress.
Here is what's in my header:
<script type="text/template" data-template="eventitem">
<div class="muzodo_events">
<table>
<tr>
<td class="col_one">
<p class="list-group-item-text date">${FormattedDate}</p>
<p class="list-group-item-text time">${TimeRange}</p>
</td>
<td class="col_two">
<p class="list-group-item-text name">${Name}</p>
</td>
<td class="col_three">
<p class="list-group-item-text address">${Address}</p>
</td>
<td class="col_four">
<a href="${CustomField_Link_Value}" target="_blank" class="x-btn">More Info</a>
</td>
</tr>
</table>
</div>
</script>
And here is what's in my footer:
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://muzodo.com/api/muzodoApi-v2.js?v=6"></script>
<script type="text/javascript">
var options = {
exclude: "UNCONFIRMED",
noEventsText: "Stay tuned for upcoming events.",
template: "eventitem",
dateFormat: "mmm d, yyyy",
customFields: [
{
field: "Link"
}
]
};
getMuzodoEvents("46D54023-7AAD-1D49-8857-9461628569D5", "upcomingEventsDiv", options);
</script>
Here is the date format script that it's pulling. I've searched through this thread, but I can't figure out which part of my script needs to be updated as none of them quite match the examples.
Thank you!