Git Product home page Git Product logo

Comments (5)

sstrickx avatar sstrickx commented on June 22, 2024

Hi, I'm looking into it.
This won't be easy to solve as it looks like Yahoo Finance doesn't provide the timezone information. I've also read somewhere that the dates would be in the America/New_York timezone while the time would be in the local timezone.
Anyway, I'll try to keep you posted.

from yahoofinance-api.

dreamershl avatar dreamershl commented on June 22, 2024

Is it possible to make the "YahooFinance.TIMEZONE" not final. So the application get chance to adjust the timezone accordingly. Or the application is able to set the timezone according to the exchange.

from yahoofinance-api.

sstrickx avatar sstrickx commented on June 22, 2024

I'll try to automatically detect the timezone based on the exchange. Sadly, it will not be possible to give a correct time if the exchange is unknown to the library. This should only happen in rare occasions and could be easily fixed with a new version.
Should be ready by next week.

from yahoofinance-api.

sstrickx avatar sstrickx commented on June 22, 2024

A small explanation: the correct time zone should now be automatically detected.
In case you still want to manually set the time zone for a specific quote, you can now use the StockQuote.getLastTradeDateTime(java.util.TimeZone timeZone) method.

from yahoofinance-api.

dreamershl avatar dreamershl commented on June 22, 2024

see your change. Thank for the udpate

from yahoofinance-api.

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.