Skip to content

Commit ed66270

Browse files
authored
Merge pull request #4325 from oleibman/sampsup
Fix 2 Samples
2 parents 3f15579 + 191bf21 commit ed66270

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/Reading_workbook_data/Custom_properties.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
break;
4040
case 'd': // date
41-
$propertyValue = is_numeric($propertyValue) ? date('l, d<\s\u\p>S</\s\u\p> F Y g:i A', (int) $propertyValue) : '*****INVALID*****';
41+
$propertyValue = is_numeric($propertyValue) ? date('l, j<\s\u\p>S</\s\u\p> F Y g:i A', (int) $propertyValue) : '*****INVALID*****';
4242
$propertyType = 'date';
4343

4444
break;

samples/Reading_workbook_data/Properties.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
// Read the Date when the workbook was created (as a PHP timestamp value)
2121
$creationDatestamp = $spreadsheet->getProperties()->getCreated();
22-
$creationDate = Date::formattedDateTimeFromTimestamp("$creationDatestamp", 'l, d<\s\up>S</\s\up> F Y');
22+
$creationDate = Date::formattedDateTimeFromTimestamp("$creationDatestamp", 'l, j<\s\u\p>S</\s\u\p> F Y');
2323
$creationTime = Date::formattedDateTimeFromTimestamp("$creationDatestamp", 'g:i A');
2424
$helper->log('<b>Created On: </b>' . $creationDate . ' at ' . $creationTime);
2525

@@ -30,7 +30,7 @@
3030
// Read the Date when the workbook was last modified (as a PHP timestamp value)
3131
$modifiedDatestamp = $spreadsheet->getProperties()->getModified();
3232
// Format the date and time using the standard PHP date() function
33-
$modifiedDate = Date::formattedDateTimeFromTimestamp("$modifiedDatestamp", 'l, d<\s\up>S</\s\up> F Y');
33+
$modifiedDate = Date::formattedDateTimeFromTimestamp("$modifiedDatestamp", 'l, j<\s\u\p>S</\s\u\p> F Y');
3434
$modifiedTime = Date::formattedDateTimeFromTimestamp("$modifiedDatestamp", 'g:i A');
3535
$helper->log('<b>Last Modified On: </b>' . $modifiedDate . ' at ' . $modifiedTime);
3636

0 commit comments

Comments
 (0)