Skip to content

Commit 68d334a

Browse files
committed
fix: localtime implementation for baremetal
1 parent 2d092be commit 68d334a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libc/src/time/baremetal/localtime.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
namespace LIBC_NAMESPACE_DECL {
1212

13-
LLVM_LIBC_FUNCTION(struct tm *tm, localtime, (time_t *time)) {
14-
(void)time;
15-
return NULL;
13+
LLVM_LIBC_FUNCTION(struct tm *, localtime, (time_t *timer)) {
14+
return time_utils::localtime_internal(timer, buf);
1615
}
1716

1817
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)