If you have an event handler defined like this in JavaScript:
$("a[product-id]").click(edit_product);function edit_product(event) { ...}
In this example I’m going to use the spanish locale and the “Europe/Madrid” timezone.
First we need an entity that will hold the DateTime, for example a Booking entity:
<?phpnamespace AppBundle\Entity…