Skip to content

feat: add optional Timezone parameter for MudWatch#615

Merged
mckaragoz merged 1 commit intoCodeBeamOrg:devfrom
5m2wse50:feat-watch-timezone
Apr 8, 2026
Merged

feat: add optional Timezone parameter for MudWatch#615
mckaragoz merged 1 commit intoCodeBeamOrg:devfrom
5m2wse50:feat-watch-timezone

Conversation

@5m2wse50
Copy link
Copy Markdown
Contributor

@5m2wse50 5m2wse50 commented Apr 7, 2026

Summary

This PR adds an optional TimeZone parameter to the MudWatch component.
When the TimeZone parameter is set, the watch will display the time according to the specified timezone, regardless of the client's location.

Changes

  • Added TimeZone (of type TimeZoneInfo?) parameter to MudWatch.
  • Added GetCurrentTime() helper method to handle time conversion.
  • Updated OnInitialized, Elapse, and SetWatchMode to use the new helper method.

Fixes #100

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.08%. Comparing base (28fde7e) to head (8de8b18).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...azor.Extensions/Components/Watch/MudWatch.razor.cs 75.00% 1 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (75.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #615      +/-   ##
==========================================
- Coverage   68.09%   68.08%   -0.01%     
==========================================
  Files         107      107              
  Lines        7495     7499       +4     
  Branches     1286     1287       +1     
==========================================
+ Hits         5104     5106       +2     
- Misses       1916     1917       +1     
- Partials      475      476       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mckaragoz mckaragoz merged commit 38ff73a into CodeBeamOrg:dev Apr 8, 2026
2 of 3 checks passed
@mckaragoz
Copy link
Copy Markdown
Contributor

Thanks 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Timezone optional parameter for watch

2 participants