fixing timezone pt. 2

This commit is contained in:
hgw 2023-12-02 00:48:08 +11:00
parent a7a9bfb094
commit bfddd4f3e9
Signed by: hgw
SSH Key Fingerprint: SHA256:NQGxKc1SBxScBCFxfa0Mx7yzNpOieGL9WUOwyafNEU4

View File

@ -91,9 +91,9 @@ async function twitter(feedURL, n, nick) {
if (data.isoDate !== undefined) {
var date = moment(data.isoDate)
if (uconfig[nick].timezone != undefined) {
try {
var syncDate = date.tz(uconfig[nick].timezone)
} else {
} catch(e) {
var syncDate = date.tz(config.feed.timezone)
}
consoleLog('[feed-predef.twitter] Got tweet from '+syncDate.format())