-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date selected is saved as selected date minus 1 day #2
Comments
We need to use a proper timezone handling then. The database stores everything in UTC? Then we need to show all datetime values in local timezone and save it in UTC |
I would propose the following solution:
|
Hi @thulium3, I would suggest the following: Let's test the adjustments first in my HANA XS PoC Backend and let's create a frontend for that. If we validated in the PoC let's do the change of the DB Schema. OK? |
OK. I tried to do the changes in my local sitreg instance but now I cannot activate anything and I am lost. I do not have any XS knowledge so far :-( |
Unfortunately this messages when editing an .xsodata file are "normal" I learned to ignore them. As long as you can activate the .xsodata file at the end. Perhaps we should create an issue for the backend first and continue here as soon as the backend is fixed and the Jasmine tests are running. |
Seen this many times. The only solution I know of so far is to add the timezone offset before you call the service to store the date:
|
Oh actually, I've had that issue myself as well. With a PHP backend, I simply create a timestamp from the javascript W3C timestamp (which automatically converts the timezone to UTC). Surely, HCP Java runtime should have something similar? or Maybe use the Node.js as server side processing? |
I think it's fixed. I've added UTC:true. Can you validate this? |
When I maintain Saturday, June 10th 2017 as the event date:
and save then the date is set to Jun 9th 2017:
When I have a look into the stored date using the HANA OData Explorer I can see that the date was stored like this:
The text was updated successfully, but these errors were encountered: