Skip to content

Commit

Permalink
✨ (DateHelper): 获取指定月份日期按周分组,指定日期获取周数和季度
Browse files Browse the repository at this point in the history
  • Loading branch information
Joycezhangw committed Apr 24, 2023
1 parent 1ff85bb commit f530d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/DateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public static function getWeekStartEndAMoth($date, $format = 'Y-m-d')
* @param bool $isWeekMonday true : 一个月以周一开始,为7天;false :一个月以周日开始
* @return array
*/
public function getWeekAndQInAMonth($timestamp, $isWeekMonday = true)
public static function getWeekAndQInAMonth($timestamp, $isWeekMonday = true)
{
$dt = Carbon::parse($timestamp);
$dt->timezone = "Asia/Shanghai";
Expand Down

0 comments on commit f530d70

Please sign in to comment.