Skip to content

Commit

Permalink
fixed format_timespan
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara McCutcheon committed Jun 26, 2022
1 parent 4efdcb4 commit 144e6c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions wp-config.php

This file was deleted.

4 changes: 2 additions & 2 deletions wp-content/themes/resume/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function get_skills() : array {
return $skills;
}

function unserialize_skills(array $value, array $skills) : array|string {
function unserialize_skills(array $value, array $skills) {
$unserialized_data = array_shift($value);
$data = maybe_unserialize($unserialized_data);
if (!is_array($data)) {
Expand Down Expand Up @@ -475,7 +475,7 @@ function format_timespan($start_date_string, $end_date_string) : string {
if ($year_span < 2) {
$format_string = 'F Y';
}
return sprintf('%d - %s', $start_date->format($format_string), $end_date->format($format_string));
return $start_date->format($format_string) . ' - ' . $end_date->format($format_string);
}

function get_education() : array {
Expand Down

0 comments on commit 144e6c4

Please sign in to comment.