In the test script tests/scripts/all.sh the armcc build is a baremetal build and doesn't use MBEDTLS_HAVE_TIME therefore the test configuration MBEDTLS_PLATFORM_TIME_ALT which is dependent on it must be unset.