mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Local time support is now EXPERIMENTAL
This commit is contained in:
+10
-1
@@ -265,10 +265,19 @@ config ARCH_LOWPUTC
|
|||||||
config LIBC_LOCALTIME
|
config LIBC_LOCALTIME
|
||||||
bool "localtime API call support"
|
bool "localtime API call support"
|
||||||
default "n"
|
default "n"
|
||||||
depends on !DISABLE_ENVIRON
|
depends on !DISABLE_ENVIRON && EXPERIMENTAL
|
||||||
---help---
|
---help---
|
||||||
localtime API call support
|
localtime API call support
|
||||||
|
|
||||||
|
Logic currently depends on file system support with, at a minimum, these
|
||||||
|
files in the zoneinfo directory: GMT and posixrules.
|
||||||
|
|
||||||
|
There is also an issue with mktime being called very early in
|
||||||
|
initialization by the OS before there are any file systems available.
|
||||||
|
|
||||||
|
And finally, the times presented by the NSH date command are wrong with
|
||||||
|
this logic is enabled.
|
||||||
|
|
||||||
if LIBC_LOCALTIME
|
if LIBC_LOCALTIME
|
||||||
|
|
||||||
config LIBC_TZ_MAX_TIMES
|
config LIBC_TZ_MAX_TIMES
|
||||||
|
|||||||
Reference in New Issue
Block a user