Bug #20239
closedCopying Datasets with related data start- and endtime is recalculated
0%
Description
Szenery:
I've got a dataset (A) with related data (A.1, A.2 ...) both combined with IRRE. A.1 has got a start- and endtime.
When copying dataset A for creating a new, similar dataset (B), all related data is copied as well (as it should be) but the start- and endtime is recaltulated.
e.g. starttime in A.1 is 1240610400 (which is 25th April 2009 - 00:00). After copying starttime in B.1 is now 7200 less (1240603200 wich is 24th April 2009 - 22:00). This seems to me, that while copying localtime is recalculated to UTC.
This error could be reproduced in 4.3.0 alpha 2, 4.2.6 on local servers and external servers.
(issue imported from #M10782)
Files
Updated by Niels Pardon over 15 years ago
You can use the attached extension to test the bug.
Install the attached extension through the extension manager.
In Web > List module create a new record of type "Test". Give this
record the title "parent". Add a child record via IRRE with the title
"child" and set the starttime of the child record. Save the parent record.
Now create a copy of the parent record. You will see that both the
parent and the child record are copied. Open the copy of the child record.
You will see that before the patch is applied the starttime of the copy
of the child record differs from the original child record (depends
whether you are in UTC timezone or not).
Apply the patch and do the whole procedure again. You will see that this
time the starttime of the copy of the child record does not differ from
the original child record.