You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
855 B

  1. From c0d3452e0366e2ab4fc51e7981e48636facdf486 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Tue, 8 Jan 2019 15:45:26 +0000
  4. Subject: [PATCH 1/2] exfat_oal: use get_seconds() directly
  5. ---
  6. exfat_oal.c | 9 +--------
  7. 1 file changed, 1 insertion(+), 8 deletions(-)
  8. diff --git a/exfat_oal.c b/exfat_oal.c
  9. index 7435442..83f8e4b 100644
  10. --- a/exfat_oal.c
  11. +++ b/exfat_oal.c
  12. @@ -128,16 +128,9 @@ static time_t accum_days_in_year[] = {
  13. TIMESTAMP_T *tm_current(TIMESTAMP_T *tp)
  14. {
  15. - struct timespec ts;
  16. time_t second, day, leap_day, month, year;
  17. -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
  18. - ts = CURRENT_TIME_SEC;
  19. -#else
  20. - ktime_get_real_ts(&ts);
  21. -#endif
  22. -
  23. - second = ts.tv_sec;
  24. + second = get_seconds();
  25. second -= sys_tz.tz_minuteswest * SECS_PER_MIN;
  26. /* Jan 1 GMT 00:00:00 1980. But what about another time zone? */