diff options
| author | Meco Man <[email protected]> | 2021-02-07 21:49:25 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-02-07 21:49:25 +0800 |
| commit | 86ebf17a2360de740219cf9a5441cb72629c5a1d (patch) | |
| tree | 15dba58cd5f985467300d25e774c6c366dbb0055 /components/dfs | |
| parent | 64bd41d6540bc074d3a020b445da664f1067d4bb (diff) | |
localtim改为gmtime
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/filesystems/elmfat/dfs_elm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c index 5f69b069bf..d8c38e96ae 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -956,7 +956,7 @@ DWORD get_fattime(void) /* lock scheduler. */ rt_enter_critical(); /* converts calendar time time into local time. */ - p_tm = localtime(&now); + p_tm = gmtime(&now); /* copy the statically located variable */ memcpy(&tm_now, p_tm, sizeof(struct tm)); /* unlock scheduler. */ |
