QuickBooks Web Connector TimeModified offset does not consider daylight saving

I use the QuickBooks Web Connector to retrieve employee records from QuickBooks Desktop on a Windows 8.1 machine using QBXML queries. Is there a reason that TimeModified timestamps return an offset that does not account for daylight saving time? Is there a way to get the current time in the main system?

It is currently returning "2014-03-27T14: 20: 53-05: 00" for TimeModified, even if the current time zone is set to Eastern time with the "Adjust Daylight Saving Time" option enabled. The offset should be -04: 00.

QBXML request:

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="12.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <EmployeeQueryRq metaData="MetaDataAndResponseData">
      <OwnerID>0</OwnerID>
    </EmployeeQueryRq>
  </QBXMLMsgsRq>
</QBXML>
+5
2

IPP, . , .

"QBWG-18389 - DST TimeCreated TimeModified Fields... .

- Intuit Partner

+2

QB 2019 :(

, :

, . , .

//Pseudocode
if (timeModified.after(now())
  return timeModified.minus(oneHour)
else
  return timeModified

, - .

0

Source: https://habr.com/ru/post/1533785/


All Articles