Comments (7)
Hi @vinod-mortgagekart, thank you for letting us know about this issue. I have a few questions:
- What operating system are you running Kinto server on?
- What database are you using Kinto with (memory or Postgres)? If Postgres, what operating system is the database running on?
- Can you provide your
kinto.ini
config for your server? Please redact any sensitive details. - Can you provide the client code you're using to create these records?
from kinto.
Hi @dstaley , thanks for the response.
- I am running Kinto on Ubuntu system
- Postgres Database, the database is also running on ubuntu
- kinto.txt
- I am actually not sure, what do you mean by client code?
from kinto.
By client code I mean the code you used to insert consecutive records.
from kinto.
Oh, got it. So I am using python. I use the kinto_http library for interacting with Kinto. To insert consecutive records, I used a loop inside which 'create_record' method was used. Example - client.create_record(id = None,data = data,bucket = "default",collection = "test_data")
But, I don't think it's language dependent, as we are getting the same error using node.js
from kinto.
Oh, it's nice you've confirmed this happens with multiple clients! Can you also confirm that the Postgres database is configured to use UTC time zone? Also can you try your code again and share the timestamps you get? The two you shared are exactly 5.5 hours + 1 ms apart, so I'm curious if that's always the case. It would make sense that your Postgres DB is using India Standard Time since that's exactly 5.5 hours offset from UTC.
from kinto.
Yes, the postgres database is configured for UTC timezone using the query - 'SET TIME ZONE 'UTC' . I tried inserting the 4 documents consecutively, and all of them are 5.5 hrs apart.
1st - 1650557896877 - (Thursday, 21 April 2022 16:18:16.877) GMT
2nd - 1650577696878 - (Thursday, 21 April 2022 21:48:16.878) GMT
3rd - 1650597496879 - (Friday, 22 April 2022 03:18:16.879) GMT
4th - 1650617296880 - (Friday, 22 April 2022 08:48:16.880) GMT
'
from kinto.
The fact that each record is exactly 5.5 hours + 1 ms apart leads me to believe there's something wrong with either your Postgres configuration or your server configuration. When you run Kinto you should see output that starts with INFO [kinto.core] Running kinto 14.6.1
. Can you check to see if that log has any mention of timezone issues? We recommend using ALTER DATABASE
to set the timezone, so if you haven't done that give that a try.
Also, can you run SELECT last_modified FROM objects;
to confirm that the timestamp in Postgres is matching the values being returned by the Kinto API?
from kinto.
Related Issues (20)
- Decoding record with > 64-bit integer fails HOT 3
- "raise MissingSectionHeaderError(fpname, lineno, line)" with docker-compose on mac HOT 1
- Kinto roadmap
- Kinto blog
- Kinto does not start when auth policy is not available HOT 3
- Send cache control headers on version redirects
- Make a plan to drop Python 3.6 compatability after it reaches EOL HOT 2
- Deprecate the `quotas` plugin
- Migrate authn/authz to security policies of Pyramid 2 HOT 2
- sentry raven lib is deprecated HOT 4
- Kinto automatically create non existing collection HOT 2
- Responsible disclosure policy HOT 1
- Replace current Kinto Admin setup with `kinto-admin` git submodule HOT 1
- Replace `psycopg2` with `psycopg2-binary`?
- id missing in the payload for the endpoint POST /accounts HOT 7
- Either don't send email notification or only selectively notify about changes to nimbus-desktop-experiments
- Wait until database starts before starting Kinto in Docker Compose HOT 2
- Replace `raven` by `sentry-python`
- Custom Certificate for OpenId / urllib3? HOT 1
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 kinto.