Code Monkey home page Code Monkey logo

Comments (5)

svenvc avatar svenvc commented on July 30, 2024

Hmm, ROK seems to be a deprecated abbreviation for Asia/Seoul. ZTimezone does understand all modern timezone designations (the long ones in /etc/share/zonetab) but only a few abbreviations.

Could you declare/configure your database to use Asia/Seoul as timezone ?

The problem is that P3Client tries to automatically adapt to the timezone used by the database.

You can have a look at P3ClientTest>>#testTimezone where there are some experiments with changing the connection's time zone.

Maybe I should extend https://github.com/svenvc/ztimestamp to undestand all abbreviations that occur in /etc/share/zonetab - I have to think about that.

from p3.

onionmixer avatar onionmixer commented on July 30, 2024
  1. I did not use "ROK" intentionally. Of course, we made the basic settings in linux environment with "Asia/Seoul".
  2. At the linux console, we confirmed that the zone command differs from the zoneinfo file of "ROK" and "Asia/Seoul".
  3. I do not know how to switch separately because I did not use "ROK" deliberately at this point.

I guess. Even if I set it to "Asia/Seoul" on linux system, "ROK" is returned. Is there a way to tell if this is a problem with ZTimestamp or a feature of the linux system?

from p3.

svenvc avatar svenvc commented on July 30, 2024

Hi,

I extended ZTimestamp's ZTimezone to support less common IDs like ROK (in addition to the modern Asia/Seoul variant). Could you try by loading the latest master version from https://github.com/svenvc/ztimestamp please ?

BTW, this might be helpful too https://phili.pe/posts/timestamps-and-time-zones-in-postgresql/

It might also be useful to give P3Client an option to better manage P3Client>>#initializeConverter and P3Converter>>#initializeFrom: when unknown values are encountered. I will look into that too.

Sven

from p3.

svenvc avatar svenvc commented on July 30, 2024

I will close this issue soon as fixed, as it should work from my POV.

from p3.

svenvc avatar svenvc commented on July 30, 2024

svenvc/ztimestamp@1a139e5

See #testROK

from p3.

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.