Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 007da6e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/backends/openwrt.rst
Expand Up @@ -333,7 +333,7 @@ The following *configuration dictionary*:
{
"general": {
"hostname": "routerA",
"timezone": "Coordinated Universal Time"
"timezone": "UTC"
}
}
Expand Down
2 changes: 1 addition & 1 deletion netjsonconfig/backends/openwrt/renderers.py
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion netjsonconfig/backends/openwrt/schema.py
Expand Up @@ -72,7 +72,7 @@
"properties": {
"timezone": {
"type": "string",
"default": "Coordinated Universal Time",
"default": "UTC",
"enum": list(timezones.keys()),
"propertyOrder": 1,
}
Expand Down
2 changes: 1 addition & 1 deletion netjsonconfig/backends/openwrt/timezones.py
Expand Up @@ -2,7 +2,7 @@

timezones = OrderedDict((
(
"Coordinated Universal Time",
"UTC",
"UTC"
),
(
Expand Down
2 changes: 1 addition & 1 deletion tests/openwisp/test_backend.py
Expand Up @@ -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):
Expand Down

0 comments on commit 007da6e

Please sign in to comment.