BetterDiscord-Stuff icon indicating copy to clipboard operation
BetterDiscord-Stuff copied to clipboard

[Bug] Time not displayed on profile without restarting Discord after plugin activation

Open Lusiiky opened this issue 1 year ago • 10 comments

Addon

Timezones

What happened?

If I enable the Timezones plugin, the time of a user with a configured timezone will not be displayed on his profile (profile on the right of the messages or right-click profile) without a restart of Discord, even though the time next to the messages is correctly displayed.

What Discord version do you have this issue on?

Stable, PTB (I haven't personally tested it on Canary, but I assume that the problem is also present(?))

Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Lusiiky avatar Feb 13 '24 15:02 Lusiiky

Can you please test with the latest commit

TheCommieAxolotl avatar Feb 15 '24 06:02 TheCommieAxolotl

Can you please test with the latest commit

Unfortunately that doesn't seem to work, Stable or PTB. Re-enabling the plugin doesn't display the timezone on the user's profile, a restart of Discord is still required.

Lusiiky avatar Feb 16 '24 10:02 Lusiiky

[BetterDiscord] [Patcher] Could not fire after callback of default for Timezones TypeError: Cannot read properties of undefined (reading 'props')
    at Object.eval [as callback] (Timezones.plugin.js:160:35)
    at renderer.js:5:23163
    at h (24321.da5c8b7cd4d46b4820eb.js:1:356518)
    at async c (24321.da5c8b7cd4d46b4820eb.js:1:5216627)
    at async 24321.da5c8b7cd4d46b4820eb.js:1:603446

MichaelDavidGK avatar Mar 30 '24 07:03 MichaelDavidGK

I am using the plugin version 1.1.1 and I do not see the timezone in the user's profile in any situation (checked both the popup and full profile since I forgot which was supposed to show it), but as the original reporter posted, I can see it just fine in their messages.

Just for curiosity, I tried to remove and re-set a timezone for a user and it did not change the outcome.

Lucatir avatar Apr 14 '24 19:04 Lucatir

@Lucatir

I am using the plugin version 1.1.1 and I do not see the timezone in the user's profile in any situation (checked both the popup and full profile since I forgot which was supposed to show it), but as the original reporter posted, I can see it just fine in their messages.

Same for me now.

Lusiiky avatar Apr 15 '24 11:04 Lusiiky

The Pull Request #94 from @zrodevkaan seems to fix the issue. 👍

Lucatir avatar Apr 16 '24 03:04 Lucatir

:)

zrodevkaan avatar Apr 16 '24 03:04 zrodevkaan

Hello @TheCommieAxolotl, In PTB at least, the timezoned time does appear in the general profile, but not in the small profile menu to the right of the messages with the person. Thanks!

Lusiiky avatar Apr 16 '24 08:04 Lusiiky

Timezones was working briefly with Timezones 1.1.2 update, but then Discord (main client) pushed out an update, and now timezones do not show again, neither in individual messages, nor in the DM's right-side panel.

pinetreemoonlight avatar Apr 18 '24 22:04 pinetreemoonlight

image image image

It seems to work just fine on 1.1.2, even the msg one (shows msg time in respective timezone) The only place it doesn't show up is DM's right-side panel @TheCommieAxolotl

MichaelDavidGK avatar Apr 24 '24 03:04 MichaelDavidGK

Please try again with v1.2.0, if still broken, I will reopen

TheCommieAxolotl avatar Jul 21 '24 01:07 TheCommieAxolotl

Please try again with v1.2.0, if still broken, I will reopen

For my part, I'm not sure it works, on PTB. image

Thank you, Lusiiky

Lusiiky avatar Jul 26 '24 14:07 Lusiiky