#community-help

Current server timestamp retrieval in Typesense

TLDR Loic inquired about obtaining current server timestamp with Typesense. Jason said it's not possible with Typesense but backend could be used to get it. Loic explains his requirement is to sync app users with server timestamp to prevent accessibility and security issues.

Powered by Struct AI

1

May 14, 2022 (20 months ago)
Loic
Photo of md5-3a88a602e4aba6a18b4a6c6985fcf08c
Loic
10:27 PM
Hi guys, is there a way to get the current server timestamp?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
11:21 PM
Not via Typesense. You would have to fetch it from your backend
Loic
Photo of md5-3a88a602e4aba6a18b4a6c6985fcf08c
Loic
11:30 PM
👍 Thanks Jason
May 16, 2022 (20 months ago)
micha
Photo of md5-acabeb270eee485e29143a208813eecc
micha
02:53 PM
I would be interested as to what the use-case for this would be

1

May 17, 2022 (20 months ago)
Loic
Photo of md5-3a88a602e4aba6a18b4a6c6985fcf08c
Loic
06:11 PM
To avoid accessibility (time zone) and security (date time hack) issues, I have to synchronize my app users with the server timestamp. I am doing it right now with firebase but typesense has a more affordable transaction cost so i was considering switching from firebase to typesense to do it