Skip to content

How to register CreatedDate in local time zone #269

Closed Answered by chullybun
Kazunari001 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Kazunari001,

Yes, make the following change in your Startup.cs project:

public void ConfigureServices(IServiceCollection services)
{
    Cleaner.DefaultDateTimeTransform = DateTimeTransform.DateTimeLocal;

The Cleaner class and corresponding Clean methods are used extensively within CoreEx as a means to manage/transform the DateTime. The code above indicates that the transformation is to result in a Local kind versus the default of UTC.

Cheers...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kazunari001
Comment options

Answer selected by Kazunari001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants