Ostico / PhpOrient

PhpOrient - Official Php driver based on the binary protocol of OrientDB.
Other
68 stars 37 forks source link

Problem with DateTime object #12

Closed dlpnet closed 9 years ago

dlpnet commented 9 years ago

When getting a "DATE" attribute from the database the OData is: [updated] => DateTime Object ( [date] => 47055-02-12 00:00:00.000000 [timezone_type] => 1 [timezone] => +00:00 )

if we convert this format back to a string it s not correct because the year is 47055. The date field should be something like: 2015-02-07 12:12:12.00000