robertoszek / pleroma-bot

Bot for mirroring one or multiple Twitter accounts in Pleroma/Mastodon/Misskey.
https://robertoszek.github.io/pleroma-bot
MIT License
102 stars 19 forks source link

Set custom timezone when using original_date #121

Open edel79 opened 1 year ago

edel79 commented 1 year ago

Hello, I'm using the latest version of Pleroma to post tweets to a Mastodon instance. It wotks great but the time reported on the Mastodon side is wrong, getting 1 hour late. For example, a tweet posted at 8:00 is reported to have been published at 7:00 on Mastodon. It seems, in my case, the date/time is reported on UTC time, as I live on the UTC+1 timezone. Is it a parameter to correct this ?

robertoszek commented 1 year ago

Ah, that makes sense. The original date of the tweet reported by the API is, as you guessed, on UTC.

Currently there's no parameter to change the timezone of the original_date mapping but I consider it's worth adding. I'll look into it, the change shouldn't be too involved.