craftcms / guest-entries

Accept anonymous entry submissions with Craft.
MIT License
106 stars 26 forks source link

Date Field not obeying timezone #80

Open glenwith1n opened 1 year ago

glenwith1n commented 1 year ago

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 `

                            <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>`