candlepin/subscription-manager — pull request #969 by mstead (2014-06-19 17:18:13+00:00)
Title: Allow tests to run in any TZ

### Details ###
python-rhsm expects entitlement certificate dates to be in UTC
as they are provided from candlepin. Update stub certificates to
use UTC defaults for start/end dates. We should perhaps be
converting our dates to UTC when certs are created (to be
backlogged).

StubEntitlementCertificates were setting the default
start/end dates in localtime which would cause tests
to fail if local TZ was GMT + >= 1 hour.

Certificate.is_valid() compares against UTC now which
fails against a TZ as specified above.

### Notes ###
Quick reference to change TZ on your test machine.
```bash
# Make note of current time zone
> ls -al /etc/localtime
lrwxrwxrwx. 1 root root 37 Apr 26 2013 /etc/localtime -> ../usr/share/zoneinfo/America/Halifax

# Change TZ to a broken one
> sudo rm /etc/localtime && sudo ln -s /usr/share/zoneinfo/Europe/Prague /etc/localtime

# Revert to old timezone
> sudo rm /etc/localtime && sudo ln -s /etc/localtime
```