Iftah Abdelghafour
2013-10-09 10:32:18 UTC
Hi everyone,
I moved my project from MySQL to Oracle, and I get this error when I try to
insert into the database.
This error is caused by the date format, in my form the date format is
dd/mm/yyyy, so my question is HOW DOES SYMFONY2 GET THE DATE FORMAT BEFORE
DB INSERT?
I added this date_default_timezone_set("Europe/Paris"); to my config.php
and app_dev.php, but nothing changed.
An exception occurred while executing 'INSERT INTO arborescence (IDNT_ARBR,
NOM_ARBR, DATE_CREATION, IDNT_SERV, IDNT_UTLS) VALUES (?, ?, ?, ?, ?)' with
params [7, "B", "2013-10-09 00:00:00", 7, 1]:
ORA-01861: literal does not match format string
Any ideas on how to solve this would be really appreciated.
Thank you very much.
Best Regards
iftah
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
I moved my project from MySQL to Oracle, and I get this error when I try to
insert into the database.
This error is caused by the date format, in my form the date format is
dd/mm/yyyy, so my question is HOW DOES SYMFONY2 GET THE DATE FORMAT BEFORE
DB INSERT?
I added this date_default_timezone_set("Europe/Paris"); to my config.php
and app_dev.php, but nothing changed.
An exception occurred while executing 'INSERT INTO arborescence (IDNT_ARBR,
NOM_ARBR, DATE_CREATION, IDNT_SERV, IDNT_UTLS) VALUES (?, ?, ?, ?, ?)' with
params [7, "B", "2013-10-09 00:00:00", 7, 1]:
ORA-01861: literal does not match format string
Any ideas on how to solve this would be really appreciated.
Thank you very much.
Best Regards
iftah
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.