Skip to content

Commit

Permalink
minor #4757 Fix links to valid ICU Datetime Patterns (bocharsky-bw)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

Fix links to valid ICU Datetime Patterns

<!--
Thanks for your contribution! If you are proposing a new feature that is complex,
please open an issue first so we can discuss about it.

Note: all your contributions adhere implicitly to the MIT license
-->

Commits
-------

0795cdd Fix links to valid ICU Datetime Patterns
  • Loading branch information
javiereguiluz committed Oct 20, 2021
2 parents 50a163e + 0795cdd commit c1dc525
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/crud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Date, Time and Number Formatting Options
return $crud
// the argument must be either one of these strings: 'short', 'medium', 'long', 'full', 'none'
// (the strings are also available as \EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField::FORMAT_* constants)
// or a valid ICU Datetime Pattern (see http://userguide.icu-project.org/formatparse/datetime)
// or a valid ICU Datetime Pattern (see https://unicode-org.github.io/icu/userguide/format_parse/datetime/)
->setDateFormat('...')
->setTimeFormat('...')

Expand Down
6 changes: 3 additions & 3 deletions src/Config/Crud.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function setHelp(string $pageName, string $helpMessage): self
}

/**
* @param string $formatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see http://userguide.icu-project.org/formatparse/datetime)
* @param string $formatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see https://unicode-org.github.io/icu/userguide/format_parse/datetime/)
*/
public function setDateFormat(string $formatOrPattern): self
{
Expand All @@ -106,7 +106,7 @@ public function setDateFormat(string $formatOrPattern): self
}

/**
* @param string $formatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see http://userguide.icu-project.org/formatparse/datetime)
* @param string $formatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see https://unicode-org.github.io/icu/userguide/format_parse/datetime/)
*/
public function setTimeFormat(string $formatOrPattern): self
{
Expand All @@ -125,7 +125,7 @@ public function setTimeFormat(string $formatOrPattern): self
}

/**
* @param string $dateFormatOrPattern A format name ('none', 'short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see http://userguide.icu-project.org/formatparse/datetime)
* @param string $dateFormatOrPattern A format name ('none', 'short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see https://unicode-org.github.io/icu/userguide/format_parse/datetime/)
* @param string $timeFormat A format name ('none', 'short', 'medium', 'long', 'full')
*/
public function setDateTimeFormat(string $dateFormatOrPattern, string $timeFormat = DateTimeField::FORMAT_NONE): self
Expand Down
2 changes: 1 addition & 1 deletion src/Field/DateField.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function setTimezone(string $timezoneId): self
}

/**
* @param string $dateFormatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see http://userguide.icu-project.org/formatparse/datetime)
* @param string $dateFormatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see https://unicode-org.github.io/icu/userguide/format_parse/datetime/)
*/
public function setFormat(string $dateFormatOrPattern): self
{
Expand Down
2 changes: 1 addition & 1 deletion src/Field/TimeField.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function setTimezone(string $timezoneId): self
}

/**
* @param string $timeFormatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see http://userguide.icu-project.org/formatparse/datetime)
* @param string $timeFormatOrPattern A format name ('short', 'medium', 'long', 'full') or a valid ICU Datetime Pattern (see https://unicode-org.github.io/icu/userguide/format_parse/datetime/)
*/
public function setFormat(string $timeFormatOrPattern): self
{
Expand Down

0 comments on commit c1dc525

Please sign in to comment.