Reviewed & tested by the community
Project:
Data
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 May 2016 at 20:48 UTC
Updated:
22 Jan 2019 at 13:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyThe attached patch works for me to implement this.
To use:
views_handler_field_data_dateand the filter and argument handlers are those from the "Date" module (if installed). (Both the default and the date-specific sort handler provided by Views should work.)Comment #3
mautumn commentedThis patch failed for me for both the 7.x-1.0-alpha8 and the 7.x-1.x-dev versions (which appear to have the same date).
The only issue was for some strange reason it couldn't add the following line to data.info :-
Comment #4
drunken monkeyIt seems like you're just using the release tarball from the project page. Since those add additional information to the
.infofiles, patches that change those files will sometimes fail.Use a Git checkout of the module instead to avoid the problem – or just make that one change manually.
Comment #5
jerry commentedThis is working fine for me, and after three years with no complaints, I'm inclined to RTBC it.
Comment #6
lazzyvn commentedthere is new version data dev update, this patch doesn't work well, module date is update new version also
i see some query change
(DATE_FORMAT(ADDTIME(time_sheet.start, SEC_TO_TIME(3600)), '%Y-%m') >= '2019-01' AND DATE_FORMAT(ADDTIME(time_sheet.start, SEC_TO_TIME(7200)), '%Y-%m') <= '2019-01')