Zephyr is immune to the Year 2038 bug by default.
The operating system enforces 64-bit time representations at both the kernel and application library levels. While it is possible to disable these protections via Kconfig, the default configuration prevents the build from succeeding if the underlying C library tries to use a 32-bit time_t.