英文:
Is Etc/Unknown a valid timezone?
问题
Etc/Unknown 是一个有效的时区吗?你有关于这个时区的更多信息吗?谢谢。
英文:
I'm getting my website visitor's timezones usings Intl.DateTimeFormat().resolvedOptions().timeZone
, but this is often returning the timezone Etc/Unknown.
Is this a valid timezone? Do you have any further information about this timezone?
Thanks
答案1
得分: 2
Etc/Unknown 时区表示无法根据用户的偏好确定时区信息。要克服这个问题,您可以使用默认时区,或允许用户手动选择时区。不能仅依赖这种方法。您可以使用备用方法,如 IP 地理定位。
英文:
Etc/Unknown timezone states that timzone information cannot be determined based on user's preferences. To overcome this, you can use a default timezone, or allow user's to manually select it. You cannot rely on this method alone. You can use alternative methods like IP Geolocation.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论