-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BC-Backport] Fixed incorrect datetime in block, ref #1525 #2940
Conversation
@Flyingmana true, when I merge I always fix the commit description 😊 |
let's please decide what to do with this, the readme has a conflict and it needs to be rebased. |
Y, it should be on all branches, |
then can you rebase it anyway? 1.9.4.x is a dead branch. |
4 month ago You changed the rules. (please) deal with it, |
we went thru a very long RFC process which was participated by many people and you've the courage to say I changed the rules. wow. |
So someome who carried this RFC should take care of old PRs to get merged. |
maybe you didn't notice that my RFC got closed and the approved one is a totally different one. weird, if only you participated. |
and btw I've rebased all of the PR myself alone, but for the few ones that I felt I couldn't fix, I stopped or closed the PR if it was abandoned. I mean, literally what else can I do? ah, maybe you don't remember that for something like a year I worked with the "v19 is the main branch" fixing all of the conflicts and cherry picking everything myself alone because that was the rule and I got told "if you want change, create an RFC". what, the, actual, heck, the courage you have to talk this way. going to bed, good night to everybody reading this pointless discussion. |
It takes you the same 10 minutes, because you are very skilled too. I spent time to review PR #1525. I rewrote it to make it backward-compatible, I tested it, What else should i do? With propper reviews this was no b/c-breaking change, |
I spent more but I wasn't sure of what to do. I'm far less skilled than many of the contributors here, but what I have for sure is that I work like a jackass anyway, I'll try to do that, hoping not to break it |
In the meanwhile I'm adding the original patch file, as a backup |
$time = strtotime($date); | ||
if ($time) { | ||
$date = $locale->date($time, null, null, $useTimezone); | ||
} | ||
return ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. It should be
} else {
return '';
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's more or less what I committed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed that part ... $date
is used in return statement.
$time = strtotime($date);
if ($time) {
$date = $locale->date($time, null, null, $useTimezone);
}
if ($showTime) {
changed ...
This PR was NOT for main
branch. #1525 was applied to main
only cause of changing method signature. It should have been reverted first and replaced by this one. ATM this PRs looks not correct anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understood that this PR was going to unify the same code on all branches, so main then ported to v19 and next, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed that part ...
$date
is used in return statement.$time = strtotime($date); if ($time) { $date = $locale->date($time, null, null, $useTimezone); }
I didn't understand, from the screenshot both $time and $date are not returned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its not on your screenshot, but $date
is used in last line of that method. (return $date->....
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sencerely can't find that in the original diff https://github.com/OpenMage/magento-lts/files/11548215/2940.diff.txt it doesn't seem to me that that variable is needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check https://github.com/OpenMage/magento-lts/pull/1525/files and https://github.com/OpenMage/magento-lts/pull/2854/files.
I just missed that else
statement.
If I'm not mistaken, the purpose of this PR was to reimplement #1525 in order to backport it to v19. But since nowadays v19 is frozen, it seems to me this PR won't be backported to v19 anyway. Also, because of the 1.9.4.x->main rebase we had a few months ago, I think I broke (my fault) this PR (because of the conflict) and I cannot bring it back to full functioning. Also, this PR has a branch in our main repo, which shouldn't be there. So, all I all I think we should close it. |
When I tested it some months back, I actually prefer this PR over my old one. However, I need to retest it again to be sure. |
@kiatng the author said this: #2940 (comment) |
This PR add a new method |
Pls see #2854 |
Closed as suggested. Thanks f... |
* backport, ref #1525 #2940 * test coverage for formatTimezoneDate() 100% * Minor change * phpcs * Minor fix * rector * Fixed tests * phpstan l5 fix * Fixed test .... hour w/o leading zero --------- Co-authored-by: Ng Kiat Siong <[email protected]>
Description (*)
New PR for #2854
Contribution checklist (*)