[Bug 1604589] [NEW] events API endpoint with program specified gives eventDate less by 1

Public bug reported:

/api/events?program=ProgramUID&skipMeta=true&skipPaging=true&fields=event,status,eventDate,created,lastUpdated,program,programStage,orgUnit,dataValues[dataElement,value] generates eventDates with one day less.
If the eventDate was 2016-07-19, then a date of 2016-07-18 is generated.

The api/events/eventUID endpoint works fine.

This affects 2.23 build
23044

** Affects: dhis2
     Importance: Undecided
         Status: New

** Tags: 2.23 dhis2

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1604589

Title:
  events API endpoint with program specified gives eventDate less by 1

Status in DHIS:
  New

Bug description:
  /api/events?program=ProgramUID&skipMeta=true&skipPaging=true&fields=event,status,eventDate,created,lastUpdated,program,programStage,orgUnit,dataValues[dataElement,value] generates eventDates with one day less.
  If the eventDate was 2016-07-19, then a date of 2016-07-18 is generated.

  The api/events/eventUID endpoint works fine.

  This affects 2.23 build
  23044

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1604589/+subscriptions

alex,

That bug has been reported numerous times, and I just saw an email
yesterday from Vincent Shaw raising it directly with Lars and Abyot.
Haven't seen a response, so I guess both are on leave

Regards
calle

···

On 19 July 2016 at 23:21, Alex Tumwesigye <atumwesigye@gmail.com> wrote:

Public bug reported:

/api/events?program=ProgramUID&skipMeta=true&skipPaging=true&fields=event,status,eventDate,created,lastUpdated,program,programStage,orgUnit,dataValues[dataElement,value]
generates eventDates with one day less.
If the eventDate was 2016-07-19, then a date of 2016-07-18 is generated.

The api/events/eventUID endpoint works fine.

This affects 2.23 build
23044

** Affects: dhis2
     Importance: Undecided
         Status: New

** Tags: 2.23 dhis2

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1604589

Title:
  events API endpoint with program specified gives eventDate less by 1

Status in DHIS:
  New

Bug description:

/api/events?program=ProgramUID&skipMeta=true&skipPaging=true&fields=event,status,eventDate,created,lastUpdated,program,programStage,orgUnit,dataValues[dataElement,value]
generates eventDates with one day less.
  If the eventDate was 2016-07-19, then a date of 2016-07-18 is generated.

  The api/events/eventUID endpoint works fine.

  This affects 2.23 build
  23044

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1604589/+subscriptions

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

--

*******************************************

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedberg@gmail.com

Skype: calle_hedberg

*******************************************

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1604589

Title:
  events API endpoint with program specified gives eventDate less by 1

Status in DHIS:
  New

Bug description:
  /api/events?program=ProgramUID&skipMeta=true&skipPaging=true&fields=event,status,eventDate,created,lastUpdated,program,programStage,orgUnit,dataValues[dataElement,value] generates eventDates with one day less.
  If the eventDate was 2016-07-19, then a date of 2016-07-18 is generated.

  The api/events/eventUID endpoint works fine.

  This affects 2.23 build
  23044

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1604589/+subscriptions