Giter Club home page Giter Club logo

Comments (6)

smkrz avatar smkrz commented on June 12, 2024 1

Thanks for reporting this issue! Our team is actively investigating the UPS tracking timezones. It does look like the API incorrectly returns UTC in some cases, instead of the corresponding locations' local timezone. We have prioritized this as a high priority bug and will provide updates here as soon as we know more.

from shippo-php-client.

aschmoe avatar aschmoe commented on June 12, 2024

@simonkreuz has there been any progress on this issue?

from shippo-php-client.

mootrichard avatar mootrichard commented on June 12, 2024

So we have plans on improving the datetimes that are being returned for tracking events soon. We are just wanting to solidify instances where a carrier doesn't provide any location or timezone information for a given event, and how best to clarify that via the API.

We're always happy to hear input on this as we're working or improve what you get back.

from shippo-php-client.

jlyon avatar jlyon commented on June 12, 2024

Is there an update on this one?

from shippo-php-client.

smkrz avatar smkrz commented on June 12, 2024

Yes - we've made a lot of progress! As an example, try using UPS tracking number 1Z306A440213992774. The Delivered event, for instance, is shown by UPS as "Tuesday, 11/21/2017 at 7:19 P.M" in San Francisco CA. Our API now correctly returns this event with a status_date of 2017-11-22T03:19:00Z.

Some additional notes:

  • Each carrier has a different way of handling timezone & location information. FedEx, for instance, always returns the time in UTZ, which is great. UPS and USPS always return local time. To get to the accurate timezone we look at several datapoints, including the location returned (e.g. city & zip). The more information we get the better.
  • In some cases, based on the data provided by the carrier, it's not possible to determine the timezone. We use additional logic to infer the timezone, if possible. However, there will be some cases that don't have an accurate timezone.

from shippo-php-client.

jlyon avatar jlyon commented on June 12, 2024

Thanks for the update @simonkreuz!

from shippo-php-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.