-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Timestamp of contact change not correct #20641
Comments
Mind to elaborate? I don't see the issue yet. Afaik on a contact update the etag changes hence the timestamp is not relevant for the sync. Is syncing of those contacts broken or just the last modified time wrong? |
Dear kesselb, So the bug is not so relevant at a first glance. But the wrong timestamp is not good for transparency reason. It leads the user to a data-dschungle, where he can not be sure, which datas are the newest. So a bugfix would be great. Regards |
cc @nextcloud/contacts contacts or server? I guess to reproduce server and client must use a different time zone. |
A two hour time difference in Europe/Germany is usually caused by an incorrectly configured system clock. As you can see the local and the UTC time are identical on the server, compared to the client. You need to set the system clock to UTC but the local time need to be set to the correct time by choosing the right time zone. That's how the Linux clock usually works. |
Dear j-ed, thanks for your answer. I think that you are not right with your conclusion, that a two hour time difference is caused by an incorrectly configured system clock. See, here in Germany during the summer we have a central european summer time (CEST) what is nearly the same than daylight saving time. This CEST is UTC+2, whereas in winter we are in UTC+1. Regards Frank |
Ok, you know the basics, but on your server the system and local time are both set to UTC and the timezone is set to Etc/UTC too. To get rid of the two hour difference you should set the timezone to "Berlin/Germany" so that the local time is two hours ahead of UTC, otherwise you will see the described time difference of two hours. What is wrong with this? |
Dear j-ed, I do not know, why the former call did not display the RTC time. Regards |
|
Thanks j-ed for your support. Hope this helps. Regards Frank 8a58d236-6d02-4554-94e7-5b013ad39d1c after edit in webgui.vcf.txt |
The timezone settings seem to be ok for me. To be honest, I don't have an idea why the timestamp is still written in UTC. The only thing I found is, that once you've edited a contact using the Nextcloud gui, the Revision-Tag is incorrectly written in this format:
This problem has already been addressed here and will most likely been fixed soon. |
Dear j-ed, I have not the time and resource to debug and develop. I hope, someone else will have it. I know from many other software projects, that time related things always work right, when you stay in one timezone. But when different timezones come into play, it doesn't work. My hope was, that it's not the case with nextcloud, because it's founded in Germany, and you always have to set language, keyboard layout and timezone in Germany before you can start. Because of the other thread you have linked here i thing, it's not the time to use address synchronization with cardbook in thunderbird, nextcloud and DAVx5 on Android. Seems to be to buggy at the moment. Regards Frank |
Yes, it's valid :) |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
@BeFrankly , could the mismatch in the web interface perhaps be caused by #19006? |
Dear @webberian, For me this behavior is not relevant ever more, because as described today in the documentation, I use TBSync with Provider for CalDAV and CardDAV and Category Manager now. It seems to work but has also some funny behavior with timestamp as well. In Web Interface all contact show "changed seconds ago" in the right bottom of the page, even if they where not changed in thunderbird or elsewhere month ago. I am not interested in filing this as a bug. Syncing works somehow and that's ok for me. Regards Frank |
Hallo,
I’m testing nextcloud running on my Rock Pi mini computer and observe a strange behavior in the NC Webpage, when I created a new contact in Thunderbird with Cardbook Add-On.
After syncing the new contact, on the NC website it is declared as 2 hours in future. In the lower right corner it is displayed (translated from german) “last changed in 2 hours”.
Same when I change the contact in Thunderbird Cardbook. Timestamp on server is in future.
When I tested it some days ago, I did a timedatectl on Server and Client PC (both Ubuntu)
timedatectl on Server:
Local time: Mo 2020-04-20 19:22:51 UTC
Universal time: Mo 2020-04-20 19:22:51 UTC
RTC time: Mo 2020-04-20 19:22:51
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
timedatectl on Thunderbird Client (some seconds later exectuted):
Local time: Mo 2020-04-20 21:25:04 CEST
Universal time: Mo 2020-04-20 19:25:04 UTC
RTC time: Mo 2020-04-20 19:25:04
Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
So syncing the contacts is absolutely impossible after that in a range of 2 hours. How to fix this behaviour? I guess it's a bug. Contact version is 3.3.0
Operating system: Linux 4.4.154-59-rockchip-g5e70f14 #4 SMP Fri Dec 14 20:55:41 CST 2018 aarch64
Webserver: Apache/2.4.29 (Ubuntu) (apache2handler)
Database: mysql 10.1.44
PHP version: 7.2.24-0ubuntu0.18.04.4
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, mysqlnd, PDO, xml, apcu, apc, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imagick, intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 18.0.4 - 18.0.4.2
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Regards
Frank
The text was updated successfully, but these errors were encountered: