Fixed episode airing dates

This commit is contained in:
Eduard Urbach 2018-04-13 21:31:55 +02:00
parent 1dfdaf073c
commit 4b4a3d6d71
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.AnimeEpisode, user *ar
else
span -
if validate.Date(episode.AiringDate.Start)
if validate.DateTime(episode.AiringDate.Start)
.episode-airing-date-start.utc-airing-date(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
//- table.episodes
@ -43,7 +43,7 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.AnimeEpisode, user *ar
//- RawIcon("eye")
//- //- a(href="https://translate.google.com/#ja/en/" + episode.Title.Japanese, target="_blank", rel="noopener")
//- //- RawIcon("google")
//- if validate.Date(episode.AiringDate.Start)
//- if validate.DateTime(episode.AiringDate.Start)
//- td.episode-airing-date-start.utc-airing-date(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
//- else
//- td.episode-airing-date-start

View File

@ -11,7 +11,7 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.Us
.episode-view-title
Japanese(episode.Title.Japanese)
if validate.Date(episode.AiringDate.Start)
if validate.DateTime(episode.AiringDate.Start)
p.episode-view-airing-date
span.utc-airing-date(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()