[Bug 1514693] [NEW] Tracker Event Date changes to previous day on refresh

Public bug reported:

I posted a complete description of the bug (with the subject "Issue with
tracker - is it a feature or a bug?") on dhis2_devs with screen shots
from Sierra Leone. I also demonstrated this to Ola and Markus while in
Livingstone, Zambia and they confirmed that this is a bug (not just
incorrect configuration).

In short: when creating an event, the initial event date is displayed
correctly, but when refreshing the screen or going out of event capture
and back in again the event date has changed to the previous event date
minus 1 day.

** Affects: dhis2
     Importance: Undecided
         Status: New

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Title:
  Tracker Event Date changes to previous day on refresh

Status in DHIS:
  New

Bug description:
  I posted a complete description of the bug (with the subject "Issue
  with tracker - is it a feature or a bug?") on dhis2_devs with screen
  shots from Sierra Leone. I also demonstrated this to Ola and Markus
  while in Livingstone, Zambia and they confirmed that this is a bug
  (not just incorrect configuration).

  In short: when creating an event, the initial event date is displayed
  correctly, but when refreshing the screen or going out of event
  capture and back in again the event date has changed to the previous
  event date minus 1 day.

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

** Also affects: ubuntu
   Importance: Undecided
       Status: New

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Title:
  Tracker Event Date changes to previous day on refresh

Status in DHIS:
  New
Status in Ubuntu:
  New

Bug description:
  I posted a complete description of the bug (with the subject "Issue
  with tracker - is it a feature or a bug?") on dhis2_devs with screen
  shots from Sierra Leone. I also demonstrated this to Ola and Markus
  while in Livingstone, Zambia and they confirmed that this is a bug
  (not just incorrect configuration).

  In short: when creating an event, the initial event date is displayed
  correctly, but when refreshing the screen or going out of event
  capture and back in again the event date has changed to the previous
  event date minus 1 day.

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

It seems the bug is happening when the server is run on a machine that
is not at UTC+0 time. Somehwere in the events API the date is
translatedfrom UTC to local time, and then it is served to the client
as UTC. This is not happening when retreiving single events, only when
retreiving a list.

** Changed in: dhis2
     Assignee: (unassigned) => Markus Bekken (markus-bekken)

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Title:
  Tracker Event Date changes to previous day on refresh

Status in DHIS:
  New
Status in Ubuntu:
  New

Bug description:
  I posted a complete description of the bug (with the subject "Issue
  with tracker - is it a feature or a bug?") on dhis2_devs with screen
  shots from Sierra Leone. I also demonstrated this to Ola and Markus
  while in Livingstone, Zambia and they confirmed that this is a bug
  (not just incorrect configuration).

  In short: when creating an event, the initial event date is displayed
  correctly, but when refreshing the screen or going out of event
  capture and back in again the event date has changed to the previous
  event date minus 1 day.

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

Hi,

I also experienced the same on an instance running on a server
UTC+05.30. I used web api to post events. The date appears correctly on
a the database. But on display at tracker capture, it seems to display
the date in UTC format disregarding the database date.

Hope this will be fixed soon.

Thanx

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Title:
  Tracker Event Date changes to previous day on refresh

Status in DHIS:
  New
Status in Ubuntu:
  Confirmed

Bug description:
  I posted a complete description of the bug (with the subject "Issue
  with tracker - is it a feature or a bug?") on dhis2_devs with screen
  shots from Sierra Leone. I also demonstrated this to Ola and Markus
  while in Livingstone, Zambia and they confirmed that this is a bug
  (not just incorrect configuration).

  In short: when creating an event, the initial event date is displayed
  correctly, but when refreshing the screen or going out of event
  capture and back in again the event date has changed to the previous
  event date minus 1 day.

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

Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ubuntu
       Status: New => Confirmed

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Title:
  Tracker Event Date changes to previous day on refresh

Status in DHIS:
  New
Status in Ubuntu:
  Confirmed

Bug description:
  I posted a complete description of the bug (with the subject "Issue
  with tracker - is it a feature or a bug?") on dhis2_devs with screen
  shots from Sierra Leone. I also demonstrated this to Ola and Markus
  while in Livingstone, Zambia and they confirmed that this is a bug
  (not just incorrect configuration).

  In short: when creating an event, the initial event date is displayed
  correctly, but when refreshing the screen or going out of event
  capture and back in again the event date has changed to the previous
  event date minus 1 day.

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