Skip to content

Commit

Permalink
fixed: added thursday and fixed lastTime function error
Browse files Browse the repository at this point in the history
  • Loading branch information
Febri Hidayan committed Aug 2, 2021
1 parent 884b736 commit acd11f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
'settings' => 'Settings',
'sunday' => 'Sunday',
'theme' => 'Theme',
'thursday' => 'Thursday',
'today' => 'today',
'tuesday' => 'Tuesday',
'type_a_message' => 'Type a message',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/id/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'settings' => 'Setelan',
'sunday' => 'Minggu',
'theme' => 'Tema',
'thursday' => 'Kamis',
'today' => 'hari ini',
'tuesday' => 'Selasa',
'type_a_message' => 'Ketik pesan',
Expand Down
3 changes: 2 additions & 1 deletion src/Laratalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ public static function lastTime(object $datetime, $today = false)
return $trans['yesterday'];
}

if ($countDay >= 1 & $countDay < 7) {
if ($countDay >= 1 && $countDay <= 6) {
$days = [
$trans['sunday'],
$trans['monday'],
$trans['tuesday'],
$trans['wednesday'],
$trans['thursday'],
$trans['friday'],
$trans['saturday'],
];
Expand Down

0 comments on commit acd11f2

Please sign in to comment.