Skip to content

Commit af25fe2

Browse files
authored
Merge pull request #6526 from kenjis/fix-docs-Response-setLastModified
docs: fix inappropriate sample code in Response
2 parents 8ab5aeb + 2ee84ba commit af25fe2

File tree

1 file changed

+1
-1
lines changed
  • user_guide_src/source/outgoing/response

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22

33
$response->setLastModified(date('D, d M Y H:i:s'));
4-
$response->setLastModified(DateTime::createFromFormat('u', $time));
4+
$response->setLastModified(DateTime::createFromFormat('U', $timestamp));

0 commit comments

Comments
 (0)