Table of Contents

TimeZone option

The time-zone option allows you to dynamically convert all the UTC DateTime properties into localized ones.

We sometimes call this the "destination" time zone.

How to use?

When I wish all the DateTime properties to be shown in a French (mainland) referential, I should use:

var options = new ExecuteReportOptions("MyReport")
    .WithTimeZone("Europe/Paris");

await this.ExecuteReportWithOptionsAsync(options);

What is the parameter?

The string parameter should be a valid IANA time zone identifier: please see the List of tz database time zones Wikipedia article.