alexnoddings / Tyne

C# libaries designed for making Line of Business Blazor apps more efficiently.
https://alexnoddings.github.io/Tyne/
MIT License
2 stars 0 forks source link

Abstract time localisation #69

Closed alexnoddings closed 1 year ago

alexnoddings commented 1 year ago

Time localisation is currently done in the TyneLocalisedDateTimeBase.cs. This should be pulled out into a service to allow users to localise their own DateTimes.

alexnoddings commented 1 year ago

Ideally, we should also refactor this to take into account time zones. Currently, only the offset is used. However, this is only accurate in the moment it is captured; historical or future dates may use a different offset (e.g. when observing daylight savings).