Comments (5)
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.
- I did not use "ROK" intentionally. Of course, we made the basic settings in linux environment with "Asia/Seoul".
- At the linux console, we confirmed that the zone command differs from the zoneinfo file of "ROK" and "Asia/Seoul".
- 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.
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.
I will close this issue soon as fixed, as it should work from my POV.
from p3.
See #testROK
from p3.
Related Issues (20)
- Using with glorp HOT 7
- Additional types HOT 5
- Problems with setting the parameters of P3PreparedStatement HOT 5
- README.md typo HOT 1
- Is there a to-do list for this project... HOT 1
- Prepared statements error when query is long and differs slightly at the end HOT 7
- Use of pgcrypto, can't call crypt? HOT 24
- Tag reading when the database does not exist HOT 8
- custom P3 error classes HOT 6
- Can't get P3 working after migration from Pharo 8 to 9 HOT 2
- Build against several PostgreSQL versions? HOT 1
- P3DatabaseDriver should have connectSSL HOT 2
- Reset in P3Client>>connect drop password HOT 2
- Pharo 9 - 'P3LogEvent logToTranscript' not working HOT 2
- Question about ip addr support HOT 8
- Unsupported frontend protocol 2.0: server supports 3.0 to 3.0 HOT 4
- Custom column type HOT 3
- Bug with Pharo 7 HOT 5
- Can't handle array type HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p3.