IntlDateFormatter::format(): datefmt_format: takes either an array or an integer timestamp value or a DateTime object (SonataSanBox) [closed]
Asked Answered
B

1

9

I have installed SonataAdmin Bundle. All is working fine but, when I add any user from dashboard, it throws a warning:

Warning: IntlDateFormatter::format(): datefmt_format: takes either an array or an integer timestamp value or a DateTime object in C:\wamp\www\sonata-sandbox\vendor\symfony\symfony\src\Symfony\Component\Form\Extension\Core\Type\DateType.php on line 260

Bracteate answered 18/7, 2013 at 9:50 Comment(2)
Can you report the issue with more extra information on the Github page github.com/sonata-project/SonataAdminBundle/issues?state=open ? ThanksArcane
Are you running wamp 64-bit or 32-bit? You should try the 64-bit version. According to this issue that was the solution: github.com/sonata-project/SonataAdminBundle/issues/1604Hunan
G
0

when you persist user->dateRelatedProperty are you sure your attempting to set a " DateTime object, an IntlCalendar object, a numeric type representing a (possibly fractional) number of seconds since epoch or an array in the format output by localtime(). " --from php.net I have a feeling this is a case of having an incorrect type or format.

Gennygeno answered 3/5, 2014 at 7:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.