Originally created by @jerry-monitor on GitHub (Jun 25, 2026).
Original GitHub issue: https://github.com/Stone-Red-Code/DesktopMagic/issues/19
I copied the line
```csharp
public override int UpdateInterval => 1000;
```
from the built-in plugin for Date and Time, but it does not update and remains static.
I asume this is correct for my own custom plugin:
```csharp
namespace Customdatetime;
internal partial class CustomDateTimePlugin : Plugin { ... }
```
Any comments are welcome.
Thanks!
@Stone-Red-Code commented on GitHub (Jun 25, 2026):
Hi there, are the other plugins working as expected? If so it's probably an issue with your plugin.
Can you post the full plugin code?
<!-- gh-comment-id:4797451583 -->
@Stone-Red-Code commented on GitHub (Jun 25, 2026):
Hi there, are the other plugins working as expected? If so it's probably an issue with your plugin.
Can you post the full plugin code?
@jerry-monitor commented on GitHub (Jun 25, 2026):
The result is this without the time ever updating:
<!-- gh-comment-id:4798545901 -->
@jerry-monitor commented on GitHub (Jun 25, 2026):
The result is this without the time ever updating:
<img width="496" height="29" alt="Image" src="https://github.com/user-attachments/assets/5a421664-a06a-4ce3-b2aa-7ff14fe85bbc" />
Specifically oldDateTime.Date == DateTime.Now.Date checks if the current date changed, which means it will only update once per day.
<!-- gh-comment-id:4798628152 -->
@Stone-Red-Code commented on GitHub (Jun 25, 2026):
Hi this seems to be caused by an issue with your code.
```cs
if (oldDateTime.Date == DateTime.Now.Date && !themeChanged)
{
return null;
}
```
Specifically `oldDateTime.Date == DateTime.Now.Date` checks if the current date changed, which means it will only update once per day.
@jerry-monitor commented on GitHub (Jun 25, 2026):
Wow, that was silly of me, I could and should have caught that one... I thought I copied that from another plugin. Anyway, thanks, it works now. :)
<!-- gh-comment-id:4798679187 -->
@jerry-monitor commented on GitHub (Jun 25, 2026):
Wow, that was silly of me, I could and should have caught that one... I thought I copied that from another plugin. Anyway, thanks, it works now. :)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @jerry-monitor on GitHub (Jun 25, 2026).
Original GitHub issue: https://github.com/Stone-Red-Code/DesktopMagic/issues/19
I copied the line
from the built-in plugin for Date and Time, but it does not update and remains static.
I asume this is correct for my own custom plugin:
Any comments are welcome.
Thanks!
@Stone-Red-Code commented on GitHub (Jun 25, 2026):
Hi there, are the other plugins working as expected? If so it's probably an issue with your plugin.
Can you post the full plugin code?
@jerry-monitor commented on GitHub (Jun 25, 2026):
Thanks for the quick feedback. Here's my code:
@jerry-monitor commented on GitHub (Jun 25, 2026):
The result is this without the time ever updating:
@Stone-Red-Code commented on GitHub (Jun 25, 2026):
Hi this seems to be caused by an issue with your code.
Specifically
oldDateTime.Date == DateTime.Now.Datechecks if the current date changed, which means it will only update once per day.@jerry-monitor commented on GitHub (Jun 25, 2026):
Wow, that was silly of me, I could and should have caught that one... I thought I copied that from another plugin. Anyway, thanks, it works now. :)