Skip to content

Commit

Permalink
[shell/linux] setting tz in gettimeofday
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon committed Nov 2, 2024
1 parent 369a193 commit 9318530
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/shell/sys/linux/vsf_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -3325,6 +3325,11 @@ int semop(int semid, struct sembuf *sops, size_t nsops)
#if VSF_KERNEL_CFG_EDA_SUPPORT_TIMER == ENABLED
int gettimeofday(struct timeval *tv, struct timezone *tz)
{
if (tz != NULL) {
tz->tz_dsttime = 0;
tz->tz_minuteswest = 0;
}

#ifdef VSF_LINUX_CFG_RTC
vsf_rtc_tm_t rtc_tm;
vsf_rtc_get(&VSF_LINUX_CFG_RTC, &rtc_tm);
Expand Down

0 comments on commit 9318530

Please sign in to comment.