} else {
UChar utf16_timezone[NITZ_TIMEZONE_MAX_LEN] = { 0 };
UCalendar *cal = NULL;
- gboolean in_dst = FALSE;
+ bool in_dst = false;
UErrorCode ec = U_ZERO_ERROR;
GList *list = NULL;
const UChar* timezone_id = 0;
int timezone_id_len = 0;
int offset = 0;
- gboolean in_dst = 0;
+ bool in_dst = false;
GList *tz_list = NULL;
UCalendar *cal = NULL;
unsigned int offset_hash = 0;
cal = ucal_open(timezone_id, u_strlen(timezone_id), uloc_getDefault(), UCAL_TRADITIONAL, &ec);
in_dst = ucal_inDaylightTime(cal, &ec);
- in_dst = (in_dst == 1) ? 1 : 0;
offset = ucal_get(cal, UCAL_ZONE_OFFSET, &ec);
offset_hash = (offset/1800000) + 24;
ucal_close(cal);