-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
OData clients/servers deliver date differently. For example, https://services.odata.org/OData/OData.svc/Products
deivers field "updated" like this:
<updated>2020-05-07T12:41:26Z</updated> .
In case of Power BI, it works if the format of the date will be done the following way:
JsonWriter::writeValue
$dateTime = new \DateTime($value, new \DateTimeZone('UTC'));
$formattedDateTime = $dateTime->format('Y-m-d\TH:i:s');
$this->writeCore($formattedDateTime, /* quotes */ true);
Current implementation in master is:
$dateTime = new \DateTime($value, new \DateTimeZone('UTC'));
$formattedDateTime = $dateTime->format('U')*1000;
$this->writeCore('/Date(' . $formattedDateTime . ')/', /* quotes */ true);
Could you please make it configurable?
Reactions are currently unavailable