cahnge git server and fixed time parsing

This commit is contained in:
2025-10-06 12:21:22 +03:00
parent 970f6c2bfd
commit 1544b943fc
11 changed files with 108 additions and 52 deletions

View File

@@ -10,8 +10,8 @@ import (
"strings"
"time"
"github.com/dromara/carbon/v2"
"github.com/go-shiori/dom"
"github.com/golang-module/carbon/v2"
"github.com/jmoiron/sqlx"
"github.com/spf13/viper"
@@ -114,7 +114,7 @@ func parseUrl(endpoint string, db *sqlx.DB) ([]model.ExternalSources, error) {
localtime := dom.QuerySelector(title, "small > span.localtime")
if localtime != nil {
lc := dom.GetAttribute(localtime, "data-lttime")
es.Created = carbon.Parse(lc)
es.Created = carbon.Parse(lc, "Europe/Kyiv")
}
}