Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TimeZone property to AtataContext #498

Closed
YevgeniyShunevych opened this issue May 27, 2021 · 0 comments
Closed

Add TimeZone property to AtataContext #498

YevgeniyShunevych opened this issue May 27, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

The need of this feature was raised in #483.

Basically, with this feature it becomes possible to set UTC or another time zone to keep all Atata date/time values (like log event timestamp) within the set time zone.

Implementation

Add to AtataContext:

public TimeZoneInfo TimeZone { get; }

Gets the time zone. The default value is TimeZoneInfo.Local.

TimeZone can be set as usually thru new AtataContextBuilder methods:

public AtataContextBuilder UseTimeZone(TimeZoneInfo timeZone);

public AtataContextBuilder UseTimeZone(string timeZoneId);

public AtataContextBuilder UseUtcTimeZone();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant