Coder Social home page Coder Social logo

Comments (10)

lau avatar lau commented on July 22, 2024

See the "Automatic data updates" section of the readme on how to disable it.

from tzdata.

lau avatar lau commented on July 22, 2024

It is a very important feature. A lot of organizations fail to be up to date because they rely on manual or processes to do it. Or they don't have any process at all for being up to date. That means that the tzdata eventually become out of date and produce incorrect results. So the idea is to have the computer do it. If the app has internet access I would recommend to leave the feature enabled.

from tzdata.

liveforeverx avatar liveforeverx commented on July 22, 2024

Thanks! RTFM for me.

from tzdata.

thmzlt avatar thmzlt commented on July 22, 2024

Would it be possible to make the hackney dependency optional for when not using the automatic data updates feature?

from tzdata.

lau avatar lau commented on July 22, 2024

@thmzlt I want the automatic update feature to be on by default. I don't think that is compatible with making hackney an optional dependency. With the way hex works. If hex changes/has changed and both can be possible, let me know.

I'm interested: how are you keeping the tzdata up to date since you are not using the automatic data updates?

from tzdata.

thmzlt avatar thmzlt commented on July 22, 2024

how are you keeping the tzdata up to date since you are not using the automatic data updates?

I am not. I'm using a library for formatting/parsing timestamps and it depends on tzdata (unfortunately most of the options for this task also depend on tzdata).

But I'd answer to your question with manually bumping the package version on each tzdata update. Obviously this is incompatible with the automatic update feature, so there are no expectations from my part. If you are interested in revisiting the merits of the feature, I can chime in.

from tzdata.

lau avatar lau commented on July 22, 2024

If you are using Calendar you can specify tzdata ~> 0.1.201601
Then there is no hackney dependency nor any autoupdating.

from tzdata.

thmzlt avatar thmzlt commented on July 22, 2024

Thank you.

from tzdata.

liveforeverx avatar liveforeverx commented on July 22, 2024

Hi, @lau ! Another question, is it possible to disable initial http request? Probably I need to package initial tzdata somehow in a build process. Because otherwise it always crash without internet access, and my application will be impossible to start due to tzdata.

from tzdata.

lau avatar lau commented on July 22, 2024

Hi @liveforeverx What is the problem? In the readme you can see how to disable auto updates. Then the .ets file that ships with Tzdata will be used. Or whichever file is in the dir specified in the config. See the part "Data directory and releases" in the readme.

from tzdata.

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.