diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-11-17 20:57:23 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-17 20:57:23 +0900 |
| commit | 7fcbe87591d5bc647a6f9ea99225b7691dfff770 (patch) | |
| tree | ad3f9e9a3709e9180653cb2d31498226c6ae8c70 /src/client | |
| parent | Update visibility text (#3299) (diff) | |
| download | sharkey-7fcbe87591d5bc647a6f9ea99225b7691dfff770.tar.gz sharkey-7fcbe87591d5bc647a6f9ea99225b7691dfff770.tar.bz2 sharkey-7fcbe87591d5bc647a6f9ea99225b7691dfff770.zip | |
Improve relative time detection (#3302)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/time.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/time.vue b/src/client/app/common/views/components/time.vue index 994f593f95..84f701469e 100644 --- a/src/client/app/common/views/components/time.vue +++ b/src/client/app/common/views/components/time.vue @@ -53,8 +53,8 @@ export default Vue.extend({ ago >= 3600 ? this.$t('@.time.hours_ago') .replace('{}', (~~(ago / 3600)).toString()) : ago >= 60 ? this.$t('@.time.minutes_ago').replace('{}', (~~(ago / 60)).toString()) : ago >= 10 ? this.$t('@.time.seconds_ago').replace('{}', (~~(ago % 60)).toString()) : - ago >= 0 ? this.$t('@.time.just_now') : - ago < 0 ? this.$t('@.time.future') : + ago >= -1 ? this.$t('@.time.just_now') : + ago < -1 ? this.$t('@.time.future') : this.$t('@.time.unknown')); } }, |