mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 21:16:52 +00:00
Use timezone constructor
This commit is contained in:
parent
9a6dfb5acb
commit
8bece07377
1 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ public class Date : Object, Initable
|
|||
if (tzs != null && tzs != "")
|
||||
{
|
||||
var ret = new DateTime.from_unix_utc(unixt);
|
||||
return ret.to_timezone(new TimeZone(tzs));
|
||||
return ret.to_timezone(new TimeZone.identifier(tzs));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -202,7 +202,7 @@ public class Date : Object, Initable
|
|||
|
||||
if (tzs != null && tzs != "")
|
||||
{
|
||||
tz = new TimeZone(tzs);
|
||||
tz = new TimeZone.identifier(tzs);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -249,7 +249,7 @@ public class Date : Object, Initable
|
|||
|
||||
if (tzs != null && tzs != "")
|
||||
{
|
||||
tz = new TimeZone(tzs);
|
||||
tz = new TimeZone.identifier(tzs);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue