When pasting a date like "2010-07-03" into the "Date begin" and/or "Date end" field, the date is reset to "1970-01-01" when saving the node. I have ro (re-) edit every project node a second time, paste date begin and end dates again, and then save a second time - then the modules stores the values correctly.
Also, the "project" node view is missing the begin and end dates, it simply doesn't show them in node display.
Opposed to that, empty fields (like "Step no.: ") are not properly collapsed when they do not contain any value (might or might not be intended, I don't know).
When the user chooses to disable the node body field (and, for example, use a more flexible CCK field insted), this is as well not properly collapsed in the node display.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | Create Invoice Page after applying the patch.png | 132.14 KB | d34dman |
Comments
Comment #1
asb commentedAlso the tabular task listing (at
/storm/tasks/?project_nid=21does neither show the begin/end dates, nor the node cration date. Thus it's necessary to edit the node to display the begin/end dates (for which the user might not even have śufficient permissions).The tabular listing also does not allow to sort the task listing by any chronolgy, and it's not clear which primary sort criteria it uses at all. It'd be really easiser if those listings would be built with (editable) views.
Comment #2
asb commentedShort addition: It seems that the begin/end dates are not only reset to "1970-01-01" when pasting a date value, but always on the first save. So basically this module seems to never save the entered date values correctly by default.
I think it can't get much worse for time tracking a project with start and end dates before most clients were even born ;-/
Workaround: Edit the node three times:
Comment #3
juliangb commentedI've just done a quick test on this and it worked fine for me. Are you using other contrib modules such as date api and/or date popup?
Comment #4
asb commentedYes. Date API 6.x-2.7, Date Popup 6.x-2.7, and Date Timezone 6.x-2.7.
Probably related: #1153672: Missing Date API for Views
Comment #5
asb commentedThis date issue is a nightmare as Nodes created by 'Storm' are simply not reliable. Now I'm getting also bogus dates like "2038-01-19".
Working with invalid dates is kind of worst case for a project management and time tracking application. "As is", 'Storm' is pretty much useless if not even harmful.
Any chances tht this will get fixed?
Comment #6
d34dman commentedi am also
havehaving this problem... but still not able to pinpoint the exact place where dates are getting lost in between node submit and node save. Yes this makes the task unusable for me atm.Comment #7
asb commentedDon't use Date popups, 'Storm' seems to be incompatible with (at least) portions of the CCK 'Date' module.
Comment #8
d34dman commentedHi asb that would be a temporary solution. yes.
Now that would automatically trigger a bug in my module.
I guess the issue is supposedly fixed in #787822 but thats for 2.x branch... the mantra is persuade i guess. :)
In this issue Dependency date_popup, kfritsche has suggested i use dateext type input (implemented by storm) to input date. While implementing this i understood what was need to get it working.
Its actually three select list input of type array that is to be converted to date string and used. So while displaying it in the node edit form the re-conversion is required.
something like.
A. Node create.
==========================
1. three select list - year month and day (on node edit form)
2. an array ( in form submit)
3. convertion to datestring
4. save this date string to database.
==========================
B. Node view
==========================
1. Fetch datestring from database
2. Display it to user according to certain format
==========================
C. Node edit form
==========================
1. Fetch datestring from database
2. Split time into year, month and day.
3. populate the defaults in select list
4. Display it to user --- user interation ------
5. an array ( in form submit)
6. convertion to datestring
7. save this datestring to database.
==========================
Looking at the above steps you can see what can go wrong if stes C2/C3 fails. The dateext fields presented at C4 will have wrong value like 0 (zero in unix timestamp would be 01-01-1970). But honestly i must confess i fail to understand how date popup interacts with dateext.
I think it has to be somewhere arround A1, A2, C4 and C5. If somebody could edit above steps to correct me if i am wrong or even better add how date popup's role in A1, A2, C4 and C5.
Comment #9
kfritscheBasically the steps from D34dMan are right, except of the fact storm saves the unix timestamp instead of a date string.
The difference between the 3 select fields and the date popup is, that the timestamp is converted to an string instead of an array.
Like juliangb, i also have no problems with the current storm-1.36 release, but it is only a sandbox project, for testing purpose (so it is empty), because i normally use storm-2.x-dev.
I have the date_popup module enabled.
Can someone help me out, how to reproduce this bug?
I created one project, one task and a ticket. All dates are still there. In the ticket form i only have select fields, in task/project i have the date popup, like described #787822: Implement support for Date popup module on Ticket and Invoice Date Fields, but it works for me.
Comment #10
d34dman commentedHi kfritsche,
i recall having had issues with weird dates (in storm and as well as in real life :( ) when i used to enter duration only. In both cases unexpected dates turned up (1970-01-01). Next time it happens i will take a take a picture and post it in here. Oh and don't worry i would only bother you about dates in storm :).
Comment #11
kfritscheAnyone tested the patch in #787822: Implement support for Date popup module on Ticket and Invoice Date Fields for the 1.x?
If #787822: Implement support for Date popup module on Ticket and Invoice Date Fields fixes this issue too, maybe we should add this to the 1.x Branch.
But I do not have Storm 1.x running somewhere, so its hard for me to test.
Any reports would be nice.
Setting this to needs review as the Issue #787822 needs review, to be commited to 1.x and should fix this Bug too.
Comment #12
d34dman commentedTried to apply the patch manually but it failed. It appeared to me that the patch was written switch between two folders mainly a/storm and b/storm... so whenever it prompted for missing files.. i just manually entered the filenames as shown below....
But the patch broke the site.
:(
Comment #13
d34dman commentedComment #14
juliangb commentedD34dMan, thanks for reviewing.
Can I suggest you use git apply to test the patches? It might apply with less manual intervention.
See http://drupal.org/node/253481/git-instructions/6.x-2.x/nonmaintainer for more details...
Comment #15
d34dman commentedHi there,
i think you dont want me to patch and test 2.x version ? it fails... testing for 1.x...
so far patch could be applied.... reviewing it..
Comment #16
juliangb commentedThat's right - this is for 1.x.
The patch has already been applied to 2.x.
Comment #17
d34dman commentedthe date popup appears as expected... but on each time i save the node, the date is getting shifted by "MINUS 1 Day".
thus if i use date popup to fill 1st Dec 2011 in the date field, on save it becomes 1324665000 converted to Friday, December 23rd 2011, 18:30:00 (GMT).
Comment #18
d34dman commentedcontinuing the discussion in this issue where i feel it is more apporpriate...
________________________________________________________________________________________________
EDIT NOTE: the link was pointing to the same page, now its corrected to point to intended issue.
Comment #19
kfritscheAs #787822: Implement support for Date popup module on Ticket and Invoice Date Fields is fixed for 1.x, this should fix this bug to.
Comment #20
d34dman commentedI cannot reproduce the bug.
Comment #21
juliangb commentedI've just tested too and cannot reproduce. Given that and D34dMan's report, I'll assume this is fixed.
If anyone is still having trouble, please post exact steps / modules to reproduce.