Skip to content

Commit

Permalink
Merge branch 'release/4.11.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
matiux committed May 28, 2024
2 parents 98a442c + 143fb69 commit 30d5932
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Matiux/DDDStarterPack/Tool/DateTimeRFCClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function getCurrentTime(\DateTimeZone $dateTimeZone = null): DateTimeRFC

public function getCurrentTimeUTC(): DateTimeRFC
{
return DateTimeRFC::nowUTC();
return DateTimeRFC::UTC();
}
}
4 changes: 2 additions & 2 deletions src/Matiux/DDDStarterPack/Type/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ final public function __construct(string $datetime = 'now', ?\DateTimeZone $time
parent::__construct($datetime, $timezone);
}

public static function nowUTC(): static
public static function UTC(string $datetime = 'now'): static
{
return new static('now',new \DateTimeZone('UTC'));
return new static($datetime,new \DateTimeZone('UTC'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Matiux/DDDStarterPack/Type/DateTimeRFC.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ final public function __construct(string $datetime = 'now', ?\DateTimeZone $time
parent::__construct($datetime, $timezone);
}

public static function nowUTC(): static
public static function UTC(string $datetime = 'now'): static
{
return new static('now',new \DateTimeZone('UTC'));
return new static($datetime,new \DateTimeZone('UTC'));
}

/**
Expand Down

0 comments on commit 30d5932

Please sign in to comment.