Skip to content
Snippets Groups Projects
Commit d9aa91b1 authored by JediKev's avatar JediKev
Browse files

issue: DatetimeField Remove Unused Vars / Use parseDateTime()

This addresses an issue where creating a ticket with a Due Date set fails
with an error of `Select a time from the list`. This is due to unused
variables in the `Ticket::create()` function. This also improves the
datetime conversion to GMT by using `Format::parseDateTime()` instead of
trying to create a DateTime object directly which also provides a fallback
if an incorrect time. This can correctly determine the timezone (if present)
and return a proper DateTime object.
parent dbfaa606
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment