Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

sahil432’s picture

Assigned: Unassigned » sahil432
sahil432’s picture

Alter comment "A format string using either PHP's date() or PHP's DateTime()"

bdlangton’s picture

Status: Active » Reviewed & tested by the community

Looks good

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

I think we should copy PHP's documentation and go for

Format accepted by date().

These the docs from http://php.net/manual/en/datetime.format.php which is the method called here. We might want an @see http://php.net/manual/function.date.php too.

joachim’s picture

There is no need for a @see with a link to php.net. Our API module automatically turns a PHP function into a link, see https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Date...

bdlangton’s picture

Status: Needs work » Needs review
FileSize
636 bytes

Simply updated the comment to match PHP's documentation as @alexpott suggested.

amietpatial’s picture

@bdlangton #8 works fine for me

borisson_’s picture

Status: Needs review » Needs work

@amietpatial uploading screenshots like that isn't helpful, we can see from the testbot that the patch applies.

The patch in #8 looks solid but it doesn't add the @see proposed by @alexpott in #6.

voleger’s picture

Status: Needs work » Needs review
FileSize
949 bytes
493 bytes

Changes regarding #10

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Remakrs in #6 are fixed.

alexpott’s picture

Crediting myself for a review comment that influenced the final patch and @joachim for opening the issue.

@amietpatial as @borisson_ said screenshots are not useful. Thanks for looking at the patch though. Posting screenshots of your codebase is not helpful, since the automated testing infrastructure tells us whether the patch applies correctly. So, I've removed your credit for this issue. In the future, you can get credit for issues by reading the issue to understand its purpose, and posting your review or testing of that purpose.

What we do need people to review is whether the issue has a correct scope, whether it passes the core gates, whether the solution completely fixes the problem without introducing other problems, and whether it's the best solution we can come up with. See the patch review guide for more information.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

In #7 @joachim pointed out the @see is not necessary so committing #8.

Committed and pushed 1ae69451ad to 8.6.x and b4b9137b90 to 8.5.x. Thanks!

  • alexpott committed 1ae6945 on 8.6.x
    Issue #2932617 by voleger, sahil432, bdlangton, joachim, alexpott:...

  • alexpott committed b4b9137 on 8.5.x
    Issue #2932617 by voleger, sahil432, bdlangton, joachim, alexpott:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.