-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Description
While passing DateTime object to DataTablesResult.Create method it is parsed to UTC time zone. In order to change it I had to include your whole project to my solution just to change:
static StringTransformers()
{
RegisterFilter<DateTimeOffset>(dateTimeOffset => dateTimeOffset.ToLocalTime().ToString("g"));
RegisterFilter<DateTime>(dateTime => dateTime.ToLocalTime().ToString("g"));
}
to:
static StringTransformers()
{
RegisterFilter<DateTimeOffset>(dateTimeOffset => dateTimeOffset.ToString("g"));
RegisterFilter<DateTime>(dateTime => dateTime.ToString("g"));
}
Is there any better way to do that? I'd like to display exactly this date which is stored in my database.
Thanks for any tips.
Metadata
Metadata
Assignees
Labels
No labels