1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00

fix UTC in Kronehit and wrong date format

This commit is contained in:
Lukas Winkler 2018-02-19 23:13:24 +01:00
parent a5da9fc15d
commit 0fdf3d0aad
No known key found for this signature in database
GPG key ID: 94AFBE7C2656A5B5
3 changed files with 6 additions and 8 deletions

View file

@ -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):

View file

@ -17,11 +17,12 @@
<div>
<ul>
<li v-for="play in plays">
{{play.format("dddd DD. MMMM: HH:MM:SS")}}
{{play.format("dddd DD. MMMM: HH:mm:ss")}}
</li>
</ul>
</div>
<router-link class="closeButton" :to="{ name: 'List', params: { channel: $route.params.channel }}" replace>
<router-link class="closeButton" :to="{ name: 'List', params: { channel: $route.params.channel }}" replace
:style="{color: color.backgroundColor}">
&times;
</router-link>
</div>
@ -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;
}
}

View file

@ -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 {