mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 09:54:26 +08:00
Add support for tz package
Fixes error message while freerdp connected the remote desktop: Unable to detect time zone
This commit is contained in:
parent
770c67d340
commit
605d0a8518
@ -1539,7 +1539,8 @@ char* freerdp_get_unix_timezone_identifier()
|
||||
* America/Montreal for example.
|
||||
*/
|
||||
|
||||
if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1)
|
||||
if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1 ||
|
||||
(len = readlink("/etc/TZ", buf, sizeof(buf) - 1)) != -1)
|
||||
{
|
||||
int num = 0;
|
||||
int pos = len;
|
||||
|
Loading…
Reference in New Issue
Block a user