mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
UxPlay 1.71: add support for HLS streaming video
This commit is contained in:
11
lib/utils.c
11
lib/utils.c
@@ -282,3 +282,14 @@ int utils_ipaddress_to_string(int addresslen, const unsigned char *address, unsi
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
const char *gmt_time_string() {
|
||||
static char date_buf[64];
|
||||
memset(date_buf, 0, 64);
|
||||
|
||||
time_t now = time(0);
|
||||
if (strftime(date_buf, 63, "%c GMT", gmtime(&now)))
|
||||
return date_buf;
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user