B4X FEED Timestamp-problem

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Timestamp-problem است. این موضوع تا کنون 102 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Timestamp-problem
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
102
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,593
4,508
Hi,
i just got response from one of my app-testers that sometimes the sync doesn´t work. After some investigation i see that the app thinks that the changes inside the app are older than on the server. I use a kind of timestamp based on utc to find out wich version is the current.
In the app i use
B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
and on my sql-server
SQL:

select datediff(second,'01.01.2020',GETUTCDATE())

When i start the app in the emulator the timestamps are equal, but on my phone i have a gap of exact 1 hour.
The sql server is like the simulator in UTC, my phone in CEST = UTC+2. When i last checked the app says 71868408 but the server 71872021 (higher...)

I have absolutely no idea why there is a difference. Can anybody help me?

Regards
Matze

 

عقب
بالا