Ticket #254 (closed problem: fixed)

Opened 6 months ago

Last modified 2 weeks ago

IDL calls to KSO data provider return wrong date format

Reported by: alisdair Owned by: alisdair
Priority: high Milestone:
Component: DataProvider Version:
Severity: major Keywords:


IDL> a = vso_search(instr='KHPI',start='2018-02-04', end='2018-02-06') Records Returned : KSO : 987/987 IDL> help,a[0].time Structure VSOTIME, 2 tags, length=32, data length=32:

START STRING '2018-00-02T04:01:00' _END STRING '2018-00-02T04:01:00'

Change History

comment:1 Changed 6 months ago by alisdair

  • Component changed from (unfiled) to DataProvider
  • Severity changed from blocker to major

comment:2 Changed 6 months ago by alisdair

  • Owner changed from Alisdair to alisdair
  • Status changed from new to assigned

comment:3 Changed 2 weeks ago by alisdair

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

The KSO data provider was returning the dates in the format YYYY-MM-DD HH:MM:SS. Changed this to return YYYYMMDDHHMMSS. tend originally just added exposure to date_obs. However this defined tend to contain milliseconds which chokes the web interface. This will need to be addressed if the VSO wants to handle millisecond times. The solution was to return CEIL(date_obs+exposure). Though this always rounds up it is consistent with the VSO being inclusive.

Note: See TracTickets for help on using tickets.