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

Darragh Enright
  • 13,676
  • 7
  • 41
  • 48
Krishna Ghodke
  • 589
  • 2
  • 6
  • 26
  • 3
    Can you report the issue with more extra information on the Github page https://github.com/sonata-project/SonataAdminBundle/issues?state=open ? Thanks – rande Jul 25 '13 at 09:16
  • Are you running wamp 64-bit or 32-bit? You should try the 64-bit version. According to this issue that was the solution: https://github.com/sonata-project/SonataAdminBundle/issues/1604 – karlingen Apr 17 '14 at 14:40

1 Answers1

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.

sjt003
  • 2,407
  • 5
  • 24
  • 39