Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98d53de

Browse files
committed
[Serializer] Add PRESERVE_CONTEXT_TIMEZONE_KEY to DateTimeNormalizer
- Change $forceTimezone argument of withForceTimezone to $force
1 parentf4b39c6 commit98d53de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Serializer/Context/Normalizer/DateTimeNormalizerContextBuilder.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function withCast(?string $cast): static
7474
* Configures if the timezone should be used from the context and ignore any timezone
7575
* defined in date strings.
7676
*/
77-
publicfunctionwithForceTimezone(?bool$forceTimezone):static
77+
publicfunctionwithForceTimezone(?bool$force):static
7878
{
79-
return$this->with(DateTimeNormalizer::FORCE_TIMEZONE_KEY,$forceTimezone);
79+
return$this->with(DateTimeNormalizer::FORCE_TIMEZONE_KEY,$force);
8080
}
8181
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp