Skip to content

Commit

Permalink
UTCのexpires_atをappのタイムゾーンに変換する
Browse files Browse the repository at this point in the history
  • Loading branch information
eai04191 committed Jan 17, 2019
1 parent e8c9de3 commit ea11434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/MetadataResolver/KomifloResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function resolve(string $url): Metadata
' - ' .
($json['content']['parents'][0]['data']['title'] ?? '?');
$metadata->image = $json['content']['cdn_public'] . "/564_mobile_large_3x/" . $json['content']['named_imgs']['cover']['filename'] . $json['content']['signature'];
$metadata->expires_at = Carbon::parse($json['content']['signature_expires']);
$metadata->expires_at = Carbon::parse($json['content']['signature_expires'])->setTimezone(config('app.timezone'));

return $metadata;
} else {
Expand Down

0 comments on commit ea11434

Please sign in to comment.