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:
parent
a5da9fc15d
commit
0fdf3d0aad
3 changed files with 6 additions and 8 deletions
2
utils.py
2
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):
|
||||
|
|
|
@ -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}">
|
||||
×
|
||||
</router-link>
|
||||
</div>
|
||||
|
@ -155,9 +156,8 @@
|
|||
padding: 10px;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
color: $color-primary;
|
||||
&:hover {
|
||||
color: darkgrey;
|
||||
color: darkgrey !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue