Skip to content

Commit

Permalink
Merge pull request #2 from nguyenanhung/v2.x
Browse files Browse the repository at this point in the history
Update Project at Tue Aug  8 14:26:37 +07 2023
  • Loading branch information
nguyenanhung committed Aug 8, 2023
2 parents 67ed498 + 09ccadb commit ded6f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Date & Time Helper, basic, simple and light
If any question & request, please contact following information

| Name | Email | Skype | Facebook |
| ----------- | -------------------- | ---------------- | ------------- |
|-------------|----------------------|------------------|---------------|
| Hung Nguyen | dev@nguyenanhung.com | nguyenanhung5891 | @nguyenanhung |

From Vietnam with Love <3
4 changes: 2 additions & 2 deletions src/DateAndTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public static function ampm($hour)
public static function adjust($hour, $ampm)
{
$hour = (int) $hour;
$ampm = strtolower($ampm);
$ampm = mb_strtolower($ampm);

switch ($ampm) {
case 'am':
Expand Down Expand Up @@ -338,7 +338,7 @@ public static function years($start = false, $end = false)
public static function span($remote, $local = null, $output = 'years,months,weeks,days,hours,minutes,seconds')
{
// Normalize output
$output = trim(strtolower((string) $output));
$output = mb_strtolower(trim((string) $output));

if (!$output) {
// Invalid output
Expand Down

0 comments on commit ded6f34

Please sign in to comment.