Skip to content

Instantly share code, notes, and snippets.

@mgreenly
Created February 15, 2012 03:11
Show Gist options
  • Select an option

  • Save mgreenly/1832843 to your computer and use it in GitHub Desktop.

Select an option

Save mgreenly/1832843 to your computer and use it in GitHub Desktop.
original_zone = Time.zone
Time.zone= TZInfo::Timezone.all.shuffle.first
# do tests
Time.zone= original_zone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment