Skip to content

Commit

Permalink
Merge pull request #189 from 8attery/feat/40-project
Browse files Browse the repository at this point in the history
Fix(#171-battery): 배터리 증감 내역 atStartOfDay() 수정
  • Loading branch information
hojeong2747 authored May 25, 2023
2 parents b68edf8 + 5c62d89 commit bf83b3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public List<BatteryVariationResponseDto> getUserBatteryData(Long userId) throws
try {
Long batteryId = batteryRepository.findUserBatteryId(userId);

LocalDateTime endDate = LocalDateTime.now(); // Current date and time
LocalDateTime endDate = LocalDate.now().atStartOfDay(); // Current date and time
LocalDateTime startDate = endDate.minusDays(30); // 30 days ago

List<BatteryDataVariationDto> variationData = batteryRepository.findUserBatteryVariation(batteryId, startDate, endDate);
Expand Down

0 comments on commit bf83b3e

Please sign in to comment.