gpt4 book ai didi

android - Firebase ServerTimestamp 为每个国家/地区应用相同的时间戳?

转载 作者:行者123 更新时间:2023-12-04 15:35:13 25 4
gpt4 key购买 nike

火力基地服务器时间戳 例如,对由firebase服务器生成的每个国家/地区应用相同的时间 session ...如果应用程序受一个国家/地区控制,那么服务器是否会应用该国家/地区的时间戳?

最佳答案

Will the server applies that countries timestamp?



不,正如 documentation 中所述(Firestore 文档,但它与 RTDB TIMESTAMP 相同):

A Timestamp represents a point in time independent of any time zone or calendar, represented as seconds and fractions of seconds at nanosecond resolution in UTC Epoch time.



如果您想根据特定“国家”(即时区)的本地时间显示该值,则取决于您从 UTC 值中得出它。例如,参见: How to convert UTC timestamp to device local time in android

关于android - Firebase ServerTimestamp 为每个国家/地区应用相同的时间戳?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60004262/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com