Permalink
Browse files

Renamed "Coordinated Universal Time" to "UTC"

UTC is the standard name.
Small backward incompatible change.
  • Loading branch information...
nemesisdesign committed Feb 19, 2016
1 parent 7f486cc commit 007da6e517cbe70216ee2901f1a3438f7cc92a42
@@ -333,7 +333,7 @@ The following *configuration dictionary*:
{
"general": {
"hostname": "routerA",
"timezone": "Coordinated Universal Time"
"timezone": "UTC"
}
}
@@ -195,7 +195,7 @@ class SystemRenderer(BaseRenderer):
def _get_system(self):
general = self.config.get('general', {}).copy()
if general:
timezone_human = general.get('timezone', 'Coordinated Universal Time')
timezone_human = general.get('timezone', 'UTC')
timezone_value = timezones[timezone_human]
general.update({
'hostname': general.get('hostname', 'OpenWRT'),
@@ -72,7 +72,7 @@
"properties": {
"timezone": {
"type": "string",
"default": "Coordinated Universal Time",
"default": "UTC",
"enum": list(timezones.keys()),
"propertyOrder": 1,
}
@@ -2,7 +2,7 @@
timezones = OrderedDict((
(
"Coordinated Universal Time",
"UTC",
"UTC"
),
(
@@ -134,7 +134,7 @@ def test_uci(self):
def test_hostname_required(self):
o = OpenWisp({
"general": {
"timezone": "Coordinated Universal Time"
"timezone": "UTC"
}
})
with self.assertRaises(ValidationError):

0 comments on commit 007da6e

Please sign in to comment.