Skip to content

Instantly share code, notes, and snippets.

@regisbsb
Created July 3, 2015 13:41
Show Gist options
  • Save regisbsb/6a6b52f2f01b3da98b86 to your computer and use it in GitHub Desktop.
Save regisbsb/6a6b52f2f01b3da98b86 to your computer and use it in GitHub Desktop.
using System;
// ReSharper disable once CheckNamespace
public static class BrazilTime
{
public static DateTime Now
{
get
{
return TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("E. South America Standard Time"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment