瀏覽代碼

Merge branch 'master' of ssh://gitea.yvvas.com:4022/craft-in-america/vue-wp

tags/0.9.0
J 4 年之前
父節點
當前提交
83899bbcca

+ 1
- 1
vue-theme/src/components/card.vue 查看文件

28
     methods: {
28
     methods: {
29
         dateFrom(unix, includeTime) {
29
         dateFrom(unix, includeTime) {
30
             const d = new Date(parseInt(unix) * 1000)
30
             const d = new Date(parseInt(unix) * 1000)
31
-            return includeTime ? d.toLocaleString('en-US', { timeZone: 'UTC' }) : d.toLocaleDateString('en-US')
31
+            return includeTime ? d.toLocaleString('en-US', { timeZone: 'UTC' }) : d.toLocaleDateString('en-US', { timeZone: 'UTC' })
32
         }
32
         }
33
     }
33
     }
34
 }
34
 }

+ 1
- 1
vue-theme/src/components/sidebars/events.vue 查看文件

33
     methods: {
33
     methods: {
34
         dateFrom(unix, includeTime) {
34
         dateFrom(unix, includeTime) {
35
             const d = new Date(parseInt(unix) * 1000)
35
             const d = new Date(parseInt(unix) * 1000)
36
-            return includeTime ? d.toLocaleString('en-US') : d.toLocaleDateString('en-US')
36
+            return includeTime ? d.toLocaleString('en-US', { timeZone: 'UTC' }) : d.toLocaleDateString('en-US', { timeZone: 'UTC' })
37
         },
37
         },
38
         async getPosts() {
38
         async getPosts() {
39
             this.$store.commit('CLEAR_EVENTS')
39
             this.$store.commit('CLEAR_EVENTS')

+ 1
- 1
vue-theme/src/components/sidebars/exhibitions.vue 查看文件

33
     methods: {
33
     methods: {
34
         dateFrom(unix, includeTime) {
34
         dateFrom(unix, includeTime) {
35
             const d = new Date(parseInt(unix) * 1000)
35
             const d = new Date(parseInt(unix) * 1000)
36
-            return includeTime ? d.toLocaleString('en-US') : d.toLocaleDateString('en-US')
36
+            return includeTime ? d.toLocaleString('en-US', { timeZone: 'UTC' }) : d.toLocaleDateString('en-US', { timeZone: 'UTC' })
37
         },
37
         },
38
         async getPosts() {
38
         async getPosts() {
39
             this.$store.commit('CLEAR_EXHIBITIONS')
39
             this.$store.commit('CLEAR_EXHIBITIONS')

+ 1
- 1
vue-theme/src/pages/single.vue 查看文件

178
          */
178
          */
179
         dateFrom(unix, includeTime) {
179
         dateFrom(unix, includeTime) {
180
             const d = new Date(parseInt(unix) * 1000)
180
             const d = new Date(parseInt(unix) * 1000)
181
-            return includeTime ? d.toLocaleString('en-US', { timeZone: 'UTC' }) : d.toLocaleDateString('en-US')
181
+            return includeTime ? d.toLocaleString('en-US', { timeZone: 'UTC' }) : d.toLocaleDateString('en-US', { timeZone: 'UTC' })
182
         },
182
         },
183
 
183
 
184
         async loadPostData() {
184
         async loadPostData() {

Loading…
取消
儲存