Etc/Unknown是一个有效的时区吗?

huangapple go评论73阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月21日 16:05:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/76298879.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定