mirror of
https://bitbucket.org/anguist/ntpa
synced 2025-10-06 02:51:23 +00:00
Fixed timezone info
This commit is contained in:
@ -75,8 +75,9 @@ namespace Ntp.Analyzer.Render.Host
|
||||
|
||||
builder.Append ("<p>");
|
||||
builder.Append (now.ToLongDateString () + " ");
|
||||
builder.Append (TimeZoneInfo.Local.StandardName + " ");
|
||||
builder.Append (now.ToLongTimeString () + ". ");
|
||||
builder.Append ((TimeZoneInfo.Local.IsDaylightSavingTime (now) ?
|
||||
TimeZoneInfo.Local.DaylightName : TimeZoneInfo.Local.StandardName));
|
||||
builder.Append (" " + now.ToLongTimeString () + ". ");
|
||||
builder.Append ("Next refresh scheduled at ");
|
||||
builder.Append (next.ToShortTimeString ());
|
||||
builder.AppendLine (".</p>");
|
||||
|
@ -87,12 +87,12 @@ namespace Ntp.Analyzer.Render.Host
|
||||
|
||||
builder.AppendLine ("<br>");
|
||||
builder.Append ("Local time is ");
|
||||
|
||||
builder.Append (now.ToLongDateString () + " ");
|
||||
builder.Append (TimeZoneInfo.Local.StandardName + " ");
|
||||
builder.Append (now.ToLongTimeString () + ". ");
|
||||
builder.AppendLine ("<br><br>");
|
||||
builder.Append ((TimeZoneInfo.Local.IsDaylightSavingTime (now) ?
|
||||
TimeZoneInfo.Local.DaylightName : TimeZoneInfo.Local.StandardName));
|
||||
builder.Append (" " + now.ToLongTimeString () + ". ");
|
||||
|
||||
builder.AppendLine ("<br><br>");
|
||||
if (config.PoolMember) {
|
||||
string poolLink = "http://www.pool.ntp.org/scores/" + ip;
|
||||
string poolText = String.Format (@"<a href=""{0}"">pool.ntp.org</a>", poolLink);
|
||||
|
@ -63,8 +63,12 @@ namespace Ntp.Analyzer.Render.Peer
|
||||
builder.AppendLine(" server</h3>");
|
||||
|
||||
builder.Append(" <p>");
|
||||
builder.Append(now.ToLongDateString() + " CEST ");
|
||||
builder.Append(now.ToLongTimeString() + ". ");
|
||||
|
||||
builder.Append (now.ToLongDateString () + " ");
|
||||
builder.Append ((TimeZoneInfo.Local.IsDaylightSavingTime (now) ?
|
||||
TimeZoneInfo.Local.DaylightName : TimeZoneInfo.Local.StandardName));
|
||||
builder.Append (" " + now.ToLongTimeString () + ". ");
|
||||
|
||||
builder.Append("Next refresh scheduled at ");
|
||||
builder.Append(next.ToShortTimeString());
|
||||
builder.AppendLine(".</p>");
|
||||
|
Reference in New Issue
Block a user