Skip to content

Commit

Permalink
Change update cycle from 7 days to 8 days
Browse files Browse the repository at this point in the history
  • Loading branch information
harmlessman committed Oct 14, 2023
1 parent 5a68300 commit d2d2f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/db/update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Future<void> setLastUpdatedDate(int year, int month, int day) async {
}

/// Firebase의 가장 최근 업데이트 날짜를 계산
/// 당일 기준 7일 전 데이터가 가장 최신 데이터
/// 당일 기준 7일 전 데이터가 가장 최신 데이터이지만, 23시에 업데이트하므로 편의상 8일전 데이터를 최신 데이터로 간주함
DateTime getUpdateDate() {
DateTime now = DateTime.now();
DateTime updateDate = DateTime(now.year, now.month, now.day - 7);
DateTime updateDate = DateTime(now.year, now.month, now.day - 8);
return updateDate;
}

Expand Down

0 comments on commit d2d2f04

Please sign in to comment.