Ticket #330 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

getdata/ons timezone not recognised on non-British servers

Reported by: dread Owned by: dread
Priority: critical Milestone:
Component: ckan Keywords:
Cc: Repository:
Theme:

Description

The python time module is supposed to recognise timezones such as 'UTC', 'GMT' and 'BST' using the %Z parameter. This works fine on British installs, but the buildbot (for example) gives this error:

DateConvertError?: Could not read date as ISO format "%a, %d %b %Y %H:%M:%S %Z". Date provided: "Mon, 04 Jan 2010 09:30:00 BST"

It turns out that it only recognises local names of timezones.

The ONS import doesn't care much about timezone, so we should just ignore it, avoiding these problems.

Change History

comment:1 Changed 4 years ago by dread

  • Owner changed from rgrp to dread

comment:2 Changed 4 years ago by dread

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in cset:2f18d0e661fd on metastable and default branches.

Note: See TracTickets for help on using tickets.