fix odd error with morty's date
This commit is contained in:
parent
77988c1682
commit
d93f463386
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func (v *YtdlVideo) GetUploadTime() time.Time {
|
||||||
mortyRelease, err := sdk.GetAPIsConfigs().GetReleasedDate(v.ID)
|
mortyRelease, err := sdk.GetAPIsConfigs().GetReleasedDate(v.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
} else {
|
} else if mortyRelease.ReleaseTime != "" {
|
||||||
mortyReleaseTimestamp, err = time.ParseInLocation(time.RFC3339, mortyRelease.ReleaseTime, time.UTC)
|
mortyReleaseTimestamp, err = time.ParseInLocation(time.RFC3339, mortyRelease.ReleaseTime, time.UTC)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
|
|
Loading…
Reference in a new issue