On 20 July 2015 at 13:05, Swapna V <[email protected]> wrote: > Hi, > > my requirement is to get created_at datetime type field from DQL according > to user timezone. I used doctrine-extensions CONVERT_TZ function that > worked for me, but the issue is resulted date from CONVERT_TZ is string, > whereas by default Doctrine datetime type filed is object type. I want the > result of CONVERT_TZ as object not as string. please let me know is it > possible to get result from CONVERT_TZ as object instead of string Or any > other solution is there?. > > > Simply retrieve as a DateTime and then use the DateTime API to get the right timezone?
See http://php.net/manual/en/datetime.settimezone.php Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
