Git Product home page Git Product logo

ztimestamp's Issues

Add documentation about defaultZoneInfoLocation

I am trying to use a project depending on ZTimestamp on windows and I get an error saying that I need to initialize the info location of ZTimeZone myself via #zoneInfoLocation:.

I don't know much about location management on the OSs so I don't really know what I should set. Maybe the comments/error could explain a little to users what they should do or give a link to a Wikipedia explanation.

localPrintString Offset ~= localTimeZone offset

Don't we make the same mistake in #localPrintString as DateAndTime, namely by using the current local offset instead of the (possibly historical) local offset of aZTimestamp?

I assume you're familiar with this issue, but I described it more in depth here and here if it helps.

I can't think of a great way to solve this because IIUC there is not a VM primitive to get the timezone in an abstract way (e.g. ID).

Possible solutions

  • At minimum, a method comment with the limitation might be helpful
  • Is there a reliable cross-platform way to get the timezone ID or similar? Maybe a new primitive is in order. This would pave the way to fix the core system and all libraries.
  • Could the local timezone be optionally set/cached by ZT for the image? That of course would not cover every case, but at least it would give people the option
  • Maybe this method should simply be removed since there's no easy and reliable way to implement it.

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.