向用户显示时间和时区信息(什么,而不是如何) [英] Displaying time and timezone information to the user (what, not how)

查看:38
本文介绍了向用户显示时间和时区信息(什么,而不是如何)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(这是一个关于用户界面的问题,而不是实现它所需的技术)

(This is a question about the UI rather than the technology required to do it)

向用户显示发生在不同时区的事件的时间的最清晰方法是什么?您的普通"用户是否了解 UTC 和时区?

What is the clearest way to display a time for events occurring in different timezones to a user? Does your "average" user understand UTC and timezones?

我们捕获本地时间和 UTC 偏移量,并将其存储在数据库 (SQL 2008 DateTimeOffset) 中,以用于不同时区发生的事件.用户也处于不同的时区.

We capture the local time and UTC offset and store it in the database (SQL 2008 DateTimeOffset) for events happening in different timezones. Users are also in a variety of timezones.

我会在下面推荐几个答案,以便对它们进行评分,但我会很感激其他建议.

I'll suggest a couple of answers below so they can be rated but I'd appreciate alternative suggestions.

我想避免在用户的时区显示时间.不同时区的用户将讨论相同的事件,如果他们位于不同的时区,就会出现混淆.

I'd like to avoid displaying the time in the user's timezone. Users in different timezones will be discussing the same events and if they're local to different timezones, there'll be confusion.

我想让这个问题变得通用,希望对更多人有用,但对于某些特定情况,这是一个用于跟踪包裹的 Web 应用程序(想想 FedEx).包裹将跨越时区.客户支持在英国,但收件人可能在其他地方.

I wanted to make the question generic and hopefully useful to more people but for some specific context, this is a web application for tracking parcels (think FedEx). Parcels will cross timezones. Customer support is in the UK but the recipient may be elsewhere.

推荐答案

像这样 15:18 GMT+1 显示当地时间和偏移量

Display the local time and the offset like this 15:18 GMT+1

这篇关于向用户显示时间和时区信息(什么,而不是如何)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆