mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 04:43:52 +01:00
fuck yeah
This commit is contained in:
@@ -191,7 +191,7 @@ void get_rdsp_ct_group(RDSGroup *group, time_t now) {
|
|||||||
group->d = (utc->tm_hour & 0xf) << 12 | utc->tm_min << 6;
|
group->d = (utc->tm_hour & 0xf) << 12 | utc->tm_min << 6;
|
||||||
|
|
||||||
local_time = localtime(&now);
|
local_time = localtime(&now);
|
||||||
offset = local_time->__tm_gmtoff / (30 * 60);
|
offset = local_time->tm_gmtoff / (30 * 60);
|
||||||
if (offset < 0) group->d |= 1 << 5;
|
if (offset < 0) group->d |= 1 << 5;
|
||||||
group->d |= abs(offset);
|
group->d |= abs(offset);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user