Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2017 at 16:21 UTC
Updated:
26 Mar 2021 at 04:19 UTC
Jump to comment: Most recent
Decide what should be in the next stable release.
Drupal is a registered trademark of Dries Buytaert.
Comments
Comment #2
ikeigenwijs commentedAll child issues and php7 compliance.
Comment #3
hkirsman commented+1 Just wanted to say that all the php 7 fixes could be in the 2.11. ikeigenwijs got ahead of me :)
Comment #4
Delphine Lepers commented+1 on this too
This patch already contains all the necessary fixes https://www.drupal.org/files/issues/date-n2533080-4.patch
Comment #5
jcisio commentedWhen we are fixing PHP 7 bugs, please don't forget a PHP 5.3 critical bug #2873415: PHP 5.3 - Date field being flagged as Invalid date not actually invalid ;)
Comment #6
damienmckennaI committed a few of the bug fixes related to changes in PHP 5.x and 7.x, will look at more soon. I also enabled weekly tests for PHP 5.6 + MySQL, PHP 7 + MySQL, and PHP 5.5 and PostgreSQL.
Comment #7
joseph.olstadeverything referenced for this release appears to be RTBC or FIXED except for one needs review #2995679: PHP 7.1 no longer converts string to arrays the first time a value is assigned with square bracket notation
Comment #8
gisleI do not think 7.x-2.11 should be released before #998076: Problem with timezone handling (caused by date_get_timezone_db returning only UTC) is fixed. Mishandling timezones is a pretty serious bug for any site that cater for users in different timezones and allows the user to set their own timezone.
The only way I am able to use Date now is to set site's timezone to UTC and not allowing users to set their own timezone.
Comment #9
liam morlandIs the current 7.x-2.x-dev worse than 7.x-2.10 when it comes to time zones? If not, the release should go ahead. We need things like PHP 7.1 compatibility.
Comment #10
gisleNo.
I've spent the best part of this week trying to get to the bottom of the timezone handling in Date as it was blocking an important project. Handling of timezones is not done right, but as far as I has been able to tell, exactly the same bug exists in both 7.x-2.10 and the latest snapshot, so releasing 7.x-2.11 with this bug will not make things worse.
I initially tried to fix it, but stopped digging when I discovered a workaround (i.e. disable timezones for both the site and all users).
I can live with this workaround, so if you really want to get 7.x-2.11 past the gate, disregard the plea I made in #8 and move forwards.
Comment #11
botrisPHP 7 compatibility is becoming a serious issue.
As at least Acquia are requiring PHP 7.1 as minimum version per October 1st.
At the moment this means at the minimum pushing a dev version to prod.
Would it be possible to release 7.2.11 this month and bumping some of the pending issues to 7.2.12?
Comment #12
joseph.olstad@botris, it would probably be reasonable to expedite the release of date for the reasons you mentioned in comment #11.
When it comes to maintaining contrib modules Damien McKenna has been more than carrying his weight! He is maintaining more modules than I can count.
If you feel the need to give back to the community please ask Damien for co-maintainer responsibilities.
Otherwise generally:
Here is how:
Then @dddave will evaluate and likely grant you maintainership, then you will be able to commit this patch and tag and publish a release.
https://www.drupal.org/project/projectownership
For clarification, review this page https://www.drupal.org/project/projectownership
Comment #13
botris@joseph.olstad I think there is a lot of questions about release dates etc. in the issue queue's and people should be able to ask about a release date. Become a co-maintainer is not replying to my question, and I think taking on co-maintainer repsonsibilities of a top 10 Drupal 7 module only so you can release a new version is irresponsible.
Comment #14
damienmckennaFYI I'm currently building up to a new Views release, and am intending to work on a new release for the Date module after that.
The best thing folks can do in the meantime is to help get issues to RTBC and write test coverage for patches that don't have it already.
Comment #15
botrisThanks for the update @DamienMcKenna.
All child issues are either RTBC or closed (fixed) except #998076: Problem with timezone handling (caused by date_get_timezone_db returning only UTC). But if the focus of 2.11 release is PHP 7 compatibility then I think it's ok to proceed as #998076 is not a PHP 7 issue.
Comment #16
gisleAs the one who added that issue (and now I am not allowed to remove it), I agree.
Comment #17
prlw1 commented"RTBC" ?
Comment #18
damienmckenna"Reviewed and Tested By the Community": https://www.drupal.org/node/156119
Comment #19
Delphine Lepers commentedI think the question was "is the new release ready to be created now?"
Since the last issue is postponed ;)
Comment #20
prlw1 commented(Actually, I really hadn't heard of the acronym before...)
Comment #21
Delphine Lepers commentedHa, ok :)
@damien Is the new release ready to be created now? Would be great to have this PHP7 ready date module !
Comment #22
damienmckennaTook care of one thing today: closed all D6 issues, except for a few that I took the time to examine and realized might be useful for D7 too.
@Delphine Lepers: At this point I'd love for folks to help test the current -dev snapshot. There isn't a huge amount of test coverage on the module, so the more manual testing that can be done the better. Thanks.
Comment #23
liam morlandTagging 7.x-2.11-beta1 might help to focus and spur the testing.
Comment #24
damienmckennaThat's a good idea!
https://www.drupal.org/project/date/releases/7.x-2.11-beta1
It'll be downloadable in a few minutes.
Comment #25
botris@DamienMcKenna
, what exactly do you want tested? Asking as all child issues are either committed to dev or in rtbc.
Comment #26
damienmckennaBasically a full regression testing on existing sites, to make sure there aren't new issues.
Comment #27
damienmckennaFYI I released beta 2: https://www.drupal.org/project/date/releases/7.x-2.11-beta2
Comment #28
joseph.olstadThanks for the beta, very nice.
Comment #29
steinmb commentedDo we plan to address "all" or could we release as is? Just reviewed #3032391: Empty date fields are being displayed and are currently testing it on PHP 7.3.x to make sure it works as expected.
Comment #30
steinmb commentedBumping this again. Have been running manual tests. Looks OK too me. No data goes up in smoke and I do no think we introduce any bugs that is not already there. @DamienMcKenna btw. that you for rolling the huge Views module update. I feel date could do with a re-fresh. Anyone see any release blockers?
Edit: I feel that most of the noice in the issue queue is timezone related. Initative #3012904: Plan for overhaul of time zone handling run by @gisle is suppose to address most of them. Progress of this work is unknown to me.
Comment #31
steinmb commentedFeel #3016390: Change in "All day" end-of-day definition broke existing data belong in this release
Comment #32
chris matthews commented@DamienMcKenna, could you provide an updated list of open issues that are preventing a 7.x-2.11 release of Date so that we can focus our effects accordingly? I agree with @steinmb that #3016390: Change in "All day" end-of-day definition broke existing data should be fixed before hand.
Comment #33
steinmb commentedI have been tracking Date module issue queue for almost a year and I think #3016390 is the only show stopper. The rest is older issues that been around for years that we can tackle in a follow up release. PHP 7.2 and 7.3 should be fully supported and we should make sure it is.
Comment #34
joseph.olstadThe latest date module works well with php 7.3.x and as far back as php 5.3.x
It would be nice to resolve #3016930
Have not yet noticed any other regressions and this on two of my clients installations.
Comment #35
chris matthews commented@steinmb @joseph.olstad, Thank you both for helping to maintain and monitor such a complex module. What about #2473171: Date and time formatter shows only current day in View and #3022337: ajax error when setting "custom" with plain format? Should these two issues be removed as children of this parent issue?
Comment #36
steinmb commentedI think it is fine to ship without addressing those two issue. We could create a 7.12 meta issue and move them there so we do not loose track of them. As soon as we ship we could have a look at https://www.drupal.org/project/issues/date?text=&status=8&priorities=All... there is a lot of patches that we could roll into dev.
Comment #37
damienmckennaThank you all for working on the issue queue to move things along.
I agree that #3016390 needs to be worked on as affects data and could result in data loss.
Comment #38
solideogloria commentedI would like it if #3032835: Validate input to date filter handler was included, as not having it can cause fatal errors on invalid input.
Comment #39
damienmckennaI released a new beta version, to tide us over: https://www.drupal.org/project/date/releases/7.x-2.11-beta3
Comment #40
chris matthews commentedI just RTBC'd #3084897: Fix the LICENSE.txt so that now leaves #3083277: Implement hook_field_user_import_supported_alter and #3016390: Change in "All day" end-of-day definition broke existing data
Comment #41
chris matthews commentedThere have been 51 issues fixed up until now. Are the following 4 issues the only remaining blockers to the 7.x-2.11 release?
#2473171: Date and time formatter shows only current day in View
#3016390: Change in "All day" end-of-day definition broke existing data
#3022337: ajax error when setting "custom" with plain format
#3083277: Implement hook_field_user_import_supported_alter
Comment #42
joseph.olstadout of those 4 , I'd say that the only real blocker would be #3016390
with that said, beta3 is way better than 2.10 (52 fixes since then, as you mention)
Comment #43
mrgoodfellow commentedbeta3 is working great for me. No errors and resolves issues that were occurring when sorting columns on the default view.
Comment #44
joseph.olstadseeing as 2.10 is php 7.2 incompatible , nor 7.1 probably, has 52 more bugs, why not just tag and release 2.11 and then reflag these issues for 2.12-beta1 ?
Comment #45
solideogloria commentedI agree. The only people who need a fix for #3016390 would probably be people who updated to the beta1 version in production. The issue was reverted, so everyone else would like a release, I'd think.
Comment #46
damienmckennaThe all-day changes were not reverted, to revert it would require writing an update script to change the data for sites running 2.11-beta3, which is basically the same as what we're doing in #3016390.
To help get 2.11 out the door, please help finish #3016390. Thank you.
Comment #47
joseph.olstadIs [ #3016390 ] a duplicate of [ #3096720 ] ?
if so, I think we can close [ #3016390 ] and cut a 2.11 release?
Comment #48
kevin morse commentedWhat can be done to help get 2.11 out the door?
Now that Ubuntu 20.04 is out I have started testing migrations of some Drupal sites to PHP 7.4 which is requiring many patches. Would be great to get a release out to limit the number of patches needed.
Comment #49
steinmb commented@Kevin Morse - Only one blocker left. #3016390: Change in "All day" end-of-day definition broke existing data Any help there would be highly appreciated.
Comment #50
opdaviesI encountered #3009740: PHP 7.3 compatibility on a D7 site after a PHP 7.3 update, so I'd like to help get the release out.
I'll take a look at #3016390: Change in "All day" end-of-day definition broke existing data and see if I can fix it and unblock the release.
Comment #51
steven jones commentedThe fix that went in for #2016787: Far dates causes PDOException 22003 is going to break on sites not using the field_sql_storage backend. I've raised this in #3163293: date_update_7007 will fail with different field storage backends. and would humbly suggest that getting the trivial fix in will stop much pain for people upgrading and then more pain for the maintainers explaining that there's an issue with the release etc. etc. etc.
Comment #52
robertom commentedI think this issue #3163868: Datetime (only time) is broken can be blocking for 7.x-2.11
Comment #53
solideogloria commentedI don't think that issue should block the release of all the fixes already committed.
Comment #54
robertom commentedyou're right, but we should write somewhere that, in specific cases, is still not compatible with php 7
Comment #55
steinmb commentedThank your for bringing the issue to our attention though I do not think #3163868: Datetime (only time) is broken is a blocker. There been talk/plans/work on re-doing the timezone but nothing have happen for a long time there. Have a look at #3012904: Plan for overhaul of time zone handling - Feel free to jump in there. My understanding, without looking into it, is that the timezone handling is a little brittle and perhaps lack tests.
Comment #56
steinmb commented@Steven Jones I personally see no problem that [##3163293] is part of 7.x.2.11.
Comment #57
robertom commented@steinmb thanks for the link to the #3012904: Plan for overhaul of time zone handling, I hadn't found it and I find it very interesting.
As for #3163868: Datetime (only time) is broken in reality the problem is not the timezone itself, but the offset difference between the year 0 and the current year in the same timezone (compared to UTC).
The date module suffers from the problem because it uses the date 0000-01-01 for "time only" datetime, but the differences in behavior depend on the updates made in the various versions of PHP
Comment #58
steinmb commentedYeah, the PHP versions and workarounds in the date module goes way way back by the look of them. If I could had it my way: As soon as we roll 7.x-2.11 we could branch of to 7.x-3.x and in that branch bump the minimum PHP version to 7.x. and allow us to dump a lot of legacy code without worry about braking older PHP versions though I am not one of the maintainers and not a dictator :)
Comment #59
damienmckennaI'm very grateful for all the work everyone has put into this recently. FWIW I'm on vacation most of this will but will be back next week and will see about wrangling all of this.
Comment #60
solideogloria commentedJust an FYI that the EOL for PHP 7.2 is this December, so it would be a good idea to get a release out with the PHP 7.3 compatibility fixes before then.
Comment #61
sseto commentedHi there! Is there any update on this? Thanks!
Comment #62
steinmb commented@Sseto - There is only one blocker left and @DamienMcKenna have been doing great work the last days. Head over to to #3016390: Change in "All day" end-of-day definition broke existing data if you can. The sooner we fix it the sooner we can roll a new stable release.
Comment #63
damienmckennaTo make things a little easier on everyone while we finish off #3016390, here's a new release: https://www.drupal.org/project/date/releases/7.x-2.11-rc1
Comment #64
jackfoust commentedSorry folks, a little confused here. If I have not updated to any of the 2.11 betas I can move from 2.10 to 2.11-rc1 and not need to worry about #3016390?
Comment #65
solideogloria commented@jackfoust I don't think so. The commit that caused the issue hasn't been reverted, because it did fix something else, I think.
Comment #66
damienmckennaWould everyone mind if we released 7.x-2.11 as-is so we can get the PHP 7.3 fixes out, with a "known issues" message about the "all day" functionality being broken?
Comment #67
gisle+1 for releasing 7.x-2.11.
Comment #68
solideogloria commentedI suppose. Is there a quick and dirty PHP or SQL query that can be used to tell if a site is using the "all day" functionality?
For example, if I have the Date All Day sub-module enabled but am not sure if it's actually used anywhere, how do I find out?
Comment #69
joseph.olstadyes please, release it as-is.
Comment #70
steinmb commented-1 My problem by releasing is that I fear that the whole day function then will "never" get fixed. I would be OK with a broken release if I could tell my end users, yes we know whole day is broken, and, yes we are going to address it within x-weeks. But since we all are volunteering our time, do we know this?
Comment #71
damienmckennaI've personally had limited time to work on things for the past few months because I've been heavily focused on a client project, but I'll have more time soon.
Comment #72
damienmckennaFWIW I split the remaining task into two pieces - one to provide test coverage for the underlying all-day functionality, another for an update script to fix the data.
Comment #73
tormi+1
Comment #74
joseph.olstadMy reasons for +1
Reasons for -1
Put a note in the release notes for those that might not be running rc3 already.
Comment #75
joelpittetSomethings can be fixed now, they have had time to marinate. Others still need work and who knows when you and others will have time to vet them to a ready state.
+1 🚀
Comment #76
solideogloria commentedAnother reason for -1:
The Usage of 7.x-2.10 is ~200K, but the usage of Usage of 7.x-2.11-rc1 is ~7500.
The sites that are penalized most by the upgrade are the ones keeping to stable releases, which is most of the sites using the module.
Keep in mind, if a site is already on the beta/rc versions, then they don't really need the next release all that badly, because they already have the PHP fixes.
Comment #77
damienmckennaI committed a fix in #3177831: Add regression testing for the All Day functionality for a regression that happens when the "all day" functionality is enabled, but that still leaves a problem with needing some test coverage for "all day" functionality. If anyone has some free time could you please help in #3197561: Add functional tests for All Day output? Thanks!
Comment #78
damienmckennaIt's done! https://www.drupal.org/project/date/releases/7.x-2.11
A huge thank you to everyone who collaborated on this release!
Comment #79
joseph.olstadw00t!
Comment #80
damienmckennaFYI I have unpublished the 2.11 release because the update script is not quite specific enough on the data it modifies and it leads to problems, e.g. #3201981: Update to 7.x-2.11 "broke" repeating all-day dates.
Comment #81
damienmckennaFYI I re-published the 2.11 release, but it now has a large warning against updating if the site uses the Date All Day functionality.
Comment #82
aitala commentedIs there any way to revert to 7.x-2.10 ? Or to handle things until 2.12 comes out?
Thanks,
Eric
Comment #83
sgdev commented@aitala, we reverted to 7.x-2.10. It takes some effort but certainly can be done. See my post here: https://www.drupal.org/project/date/issues/3203139#comment-14027666