Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kolb committed Jan 26, 2025
1 parent 21fabff commit e3b9788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Moment.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

final readonly class Moment implements \Stringable, StringNormalizable
{
private const string ATOM_INCLUDING_MILLISECONDS = 'Y-m-d\TH:i:s.uP';
private const string ATOM_INCLUDING_MICROSECONDS = 'Y-m-d\TH:i:s.uP';

// -- Construction

Expand Down Expand Up @@ -41,7 +41,7 @@ public static function fromDateTime(\DateTimeImmutable $dateTime): self

public function __toString(): string
{
return $this->format(self::ATOM_INCLUDING_MILLISECONDS);
return $this->format(self::ATOM_INCLUDING_MICROSECONDS);
}

// -- String normalizable
Expand All @@ -53,7 +53,7 @@ public static function denormalize(string $data): self

public function normalize(): string
{
return $this->format(self::ATOM_INCLUDING_MILLISECONDS);
return $this->format(self::ATOM_INCLUDING_MICROSECONDS);
}

// -- Accessors
Expand Down

0 comments on commit e3b9788

Please sign in to comment.