Skip to content

Commit

Permalink
Merge pull request #36 from microsoft/dev
Browse files Browse the repository at this point in the history
v0.5.1
  • Loading branch information
Ndiritu authored Jun 12, 2023
2 parents f53bed9 + 631212e commit fb999ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.4.0
uses: dependabot/fetch-metadata@v1.5.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
php-versions: ['7.4', '8.0', '8.1', '8.2']
steps:
- name: Checkout
uses: actions/[email protected].2
uses: actions/[email protected].3
- name: Setup PHP and Xdebug for Code Coverage report
uses: shivammathur/setup-php@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion src/JsonSerializationWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function writeDateTimeValue(?string $key, ?DateTime $value): void {
if (!empty($key)) {
$this->writePropertyName($key);
}
$this->writePropertyValue($key, "\"{$value->format(DateTimeInterface::RFC3339)}Z\"");
$this->writePropertyValue($key, "\"{$value->format(DateTimeInterface::RFC3339)}\"");
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/JsonSerializationWriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ public function testWriteIntegerValue(): void {
$this->assertEquals($expected, $actual);
}

public function testWriteDateTimeOffsetValue(): void {
public function testWriteDateTimeValue(): void {
$this->jsonSerializationWriter = new JsonSerializationWriter();
$this->jsonSerializationWriter->writeAnyValue("dateTime", new \DateTime('2018-12-12T12:34:42+00:00Z'));
$expected = '"dateTime":"2018-12-12T12:34:42+00:00Z"';
$this->jsonSerializationWriter->writeAnyValue("dateTime", new \DateTime('2018-12-12T12:34:42+00:00'));
$expected = '"dateTime":"2018-12-12T12:34:42+00:00"';
$actual = $this->jsonSerializationWriter->getSerializedContent()->getContents();
$this->assertEquals($expected, $actual);
}
Expand Down

0 comments on commit fb999ab

Please sign in to comment.