guest-entries
guest-entries copied to clipboard
Date Field not obeying timezone
I am using guest entries for events with a event start date/time and end date/time. The date that the user enters in the frontend is +10 hours when viewed in the admin as I am in Australia and we are GMT + 10. Is there anyway to fix this?
Code for my input field below
<div class="form-group required"> <label class="control-label" for="dateStart">Event date start <span class="required"></span></label> <input class="form-control date-field" id="dateStart" type="datetime-local" name="fields[eventDateStart]" required> {% if entry is defined %} {{ errorList(entry.getErrors('eventDateStart')) }} {% endif %} </div>