您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Converts dates to your local timezone
当前为
This script applies to StackExchange sites stackoverflow.com, stackexchange.com, superuser.com, etc.
The timezone that the StackExchange sites use is UTC i.e. +0000 (source)
So, this script converts the dates to your local timezone, in both:
2015-12-14 14:11:13Z
, and inDec 14 at 14:11
.It also recalculates them whenever the page changes.
*It uses the jsTimezoneDetect JavaScript script (for getting the local timezone),
and the Moment.js and Moment-Timezone JavaScript libraries (for converting the dates).
Also note: jsTimezoneDetect
does not do geo-location, nor does it care very much about historical time zones.
e.g. it may get "Europe/Berlin" when the user is in fact in "Europe/Stockholm" (they are both identical in modern time).
Known issues:
answered 1 min ago
will become answered 2 min ago
, and so on.Related post I made in stackapps.com
Here's a script to convert dates to local timezone in Stack Exchange sites