1.8 Schedule upgrade
Submitted by Ben_Charlton on Sat, 13/06/2015 - 14:01
Following routine upgrade procedures this was how our main schedule appeared...
Now the result from our live database shows
63 | date | 1970-01-01 18:00:00.0 EST | endTime | |
63 | boolean | true | inputWeight | |
63 | int | 100 | maximumSlots | |
63 | int | 15 | slotSize | |
63 | string | MINUTES | slotUnit | |
63 | date | 1970-01-01 08:00:00.0 EST | startTime |
After the upgrade nothing has changed. Upgraded data shows
63 | date | 1970-01-01 18:00:00.0 EST | endTime |
63 | boolean | true | inputWeight |
63 | int | 100 | maximumSlots |
63 | int | 15 | slotSize |
63 | string | MINUTES | slotUnit |
63 | date | 1970-01-01 08:00:00.0 EST | startTime |
Our shedule is suppose to run from 8am until 6pm...so the figures look right ..not sure EST is correct tho
The OS is set to AEST BRISBANE no DST
The other schedules have a similar problem...BUT all appointments have copied over at the correct times.
95601 | 0 | act.customerAppointment | 1.0 | d3de16c6-0bed-11e5-a2dd-538b466c1501 | Appointment | 1 | 2015-06-13 10:30:00 | 2015-06-13 10:45:00 | VACCINATION | PENDING |
See here who the info does not contain the EST ...and is set for a correct date rather than the value for the schedule.
Re: 1.8 Schedule upgrade
Possibly related to: http://www.openvpms.org/forum/wst-timezone-issue
In 1.7 and later, all date/times stored in details nodes are serialized to strings as sql-timestamps. To correct the issue, you can:
Re: 1.8 Schedule upgrade
Yep that will solve my issue however shouldnt we attempt to include this in the migration...? or atleast check for the issue?
Re: 1.8 Schedule upgrade
Raised as https://openvpms.atlassian.net/browse/OVPMS-1627
Regards,
-Tim
Re: 1.8 Schedule upgrade
BTW my solution was to update the schedules in my 1.7 system then recopy the test data base...
This avoids the need for sql changes. It will make Openvpms change the dates to sql-timestamps