X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=system.c;h=569a75d5b4df947c0166afe4b14855073a968188;hp=504cdc02f012af778aadd150def1949e8db3d148;hb=3c771f9e4ba46d3e39334cb20eab98221043f1e2;hpb=f355e233714e6ff38a38ccfe74f2f42d65a519c8 diff --git a/system.c b/system.c index 504cdc0..569a75d 100644 --- a/system.c +++ b/system.c @@ -205,7 +205,7 @@ static int system_info(struct ubus_context *ctx, struct ubus_object *obj, blob_buf_init(&b, 0); - blobmsg_add_u32(&b, "localtime", mktime(tm)); + blobmsg_add_u32(&b, "localtime", now + tm->tm_gmtoff); #ifdef linux blobmsg_add_u32(&b, "uptime", info.uptime);