From 0fdf3d0aade575034808468916e235fa5fd5f819 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Mon, 19 Feb 2018 23:13:24 +0100 Subject: [PATCH] fix UTC in Kronehit and wrong date format --- utils.py | 2 +- web/DetailView.vue | 10 +++++----- web/List.vue | 2 -- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/utils.py b/utils.py index e258b0c..aac9e0d 100644 --- a/utils.py +++ b/utils.py @@ -36,7 +36,7 @@ def string_to_time(timestring): :rtype: datetime.time """ - return datetime.strptime(timestring, "%H:%M:%S").time() + return datetime.strptime(timestring, "%H:%M:%S").utcnow().time() def time_to_date(time): diff --git a/web/DetailView.vue b/web/DetailView.vue index 6b26a4f..73d730b 100644 --- a/web/DetailView.vue +++ b/web/DetailView.vue @@ -17,11 +17,12 @@
- + × @@ -46,7 +47,7 @@ plays: [], }; }, - props: ['songs', 'color','momentDate','dateType'], + props: ['songs', 'color', 'momentDate', 'dateType'], mounted() { this.getPlays(); // document.body.style.overflow = "hidden"; @@ -155,9 +156,8 @@ padding: 10px; cursor: pointer; transition: color 0.2s; - color: $color-primary; &:hover { - color: darkgrey; + color: darkgrey !important; } } diff --git a/web/List.vue b/web/List.vue index 609ca90..c8a7ac4 100644 --- a/web/List.vue +++ b/web/List.vue @@ -142,7 +142,6 @@ } let songArray = Object.values(this.songs); - console.info(songArray); return songArray.sort(compare); } @@ -253,7 +252,6 @@ this.showDate = !this.showDate; }, toogleDetails: function ($event, songId) { - console.info($event); if (this.$route.name !== "DetailView" || this.$route.params.songId !== songId) { this.$router.replace({name: 'DetailView', params: {channel: this.channel, songId: songId}}); } else {