Forráskód Böngészése

Fixed timezone offset

Will Browning 5 éve
szülő
commit
68863fb613

+ 1 - 1
app/Console/Commands/ReceiveEmail.php

@@ -225,7 +225,7 @@ class ReceiveEmail extends Command
     protected function checkBandwidthLimit($user)
     {
         if ($user->hasReachedBandwidthLimit()) {
-            $this->error('5.2.1 Bandwidth limit exceeded for user. Please try again later.');
+            $this->error('4.2.1 Bandwidth limit exceeded for user. Please try again later.');
 
             exit(1);
         }

+ 3 - 1
resources/js/app.js

@@ -3,9 +3,11 @@ require('./bootstrap')
 import dayjs from 'dayjs'
 import advancedFormat from 'dayjs/plugin/advancedFormat'
 import relativeTime from 'dayjs/plugin/relativeTime'
+import utc from 'dayjs/plugin/utc'
 
 dayjs.extend(advancedFormat)
 dayjs.extend(relativeTime)
+dayjs.extend(utc)
 
 window.Vue = require('vue')
 
@@ -30,7 +32,7 @@ Vue.filter('formatDate', value => {
 })
 
 Vue.filter('timeAgo', value => {
-  return dayjs(value).fromNow()
+  return dayjs.utc(value).fromNow()
 })
 
 Vue.filter('truncate', (string, value) => {

+ 5 - 1
resources/js/pages/Recipients.vue

@@ -291,6 +291,10 @@
         <p class="mt-4 text-grey-700">
           Enter the individual email of the new recipient you'd like to add.
         </p>
+        <p class="mt-4 text-grey-700">
+          You will receive an email with a verification link that will expire in one hour, you can
+          click "Resend email" to get a new one.
+        </p>
         <div class="mt-6">
           <p v-show="errors.newRecipient" class="mb-3 text-red-500">
             {{ errors.newRecipient }}
@@ -615,7 +619,7 @@ export default {
         .catch(error => {
           this.addRecipientKeyLoading = false
           if (error.response !== undefined) {
-            this.error(error.response.data.message)
+            this.error(error.response.data)
           } else {
             this.error()
           }