-
- {{value}}
- {{title}}
-
-
-
-
-
-
-
diff --git a/frontend/src/store.js b/frontend/src/store.js
index 0710f30d..90148857 100644
--- a/frontend/src/store.js
+++ b/frontend/src/store.js
@@ -154,7 +154,6 @@ export default new Vuex.Store({
const messages = await Api.messages()
context.commit("setMessages", messages)
context.commit("setHasPublicData", true)
- window.console.log('finished loading required data')
},
async loadAdmin(context) {
const groups = await Api.groups()
diff --git a/types/services/struct.go b/types/services/struct.go
index d6ff1b40..852b61e0 100644
--- a/types/services/struct.go
+++ b/types/services/struct.go
@@ -4,6 +4,7 @@ import (
"github.com/statping/statping/types/checkins"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/null"
+ "github.com/statping/statping/utils"
"time"
)
@@ -81,8 +82,8 @@ type Stats struct {
// BeforeCreate for Service will set CreatedAt to UTC
func (s *Service) BeforeCreate() (err error) {
if s.CreatedAt.IsZero() {
- s.CreatedAt = time.Now().UTC()
- s.UpdatedAt = time.Now().UTC()
+ s.CreatedAt = utils.Now()
+ s.UpdatedAt = utils.Now()
}
return
}