Get timezone information

Get timezone information from system settings
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <system_settings.h>
#include <dlog.h> // for logging purposes
void
check_timezone() {
    char *value;
    int ret;
    ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, &value);
    if(ret == SYSTEM_SETTINGS_ERROR_NONE)
        LOGI("Timezone: %s", value);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX