Changeset 2704


Ignore:
Timestamp:
Feb 16, 2011, 11:06:00 AM (11 years ago)
Author:
nolte
Message:

Time Format now shown in 24hour rythm

Location:
trunk/CrypPlugins/KeySearcher
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcher.cs

    r2703 r2704  
    1717using System;
    1818using System.Diagnostics;
     19using System.Globalization;
    1920using System.IO;
    2021using System.Linq;
     
    13511352            //-----------------
    13521353            //---Current Section----
    1353             ((QuickWatch)QuickWatchPresentation).StatisticsPresentation.UpdateTime = "Last__Update__Time: " + now;
    1354             ((QuickWatch) QuickWatchPresentation).StatisticsPresentation.NextUpdateTime = "Next__Update__Time: " + now.AddMinutes(30);
     1354            ((QuickWatch)QuickWatchPresentation).StatisticsPresentation.UpdateTime = "Last__Update__Time: " + now.ToString("g", DateTimeFormatInfo.InvariantInfo);
     1355            ((QuickWatch)QuickWatchPresentation).StatisticsPresentation.NextUpdateTime = "Next__Update__Time: " + now.AddMinutes(30).ToString("g", DateTimeFormatInfo.InvariantInfo);
    13551356            ((QuickWatch) QuickWatchPresentation).StatisticsPresentation.CurrentUsers = cUsers;
    13561357            ((QuickWatch)QuickWatchPresentation).StatisticsPresentation.CurrentMachines = cMachines;
  • trunk/CrypPlugins/KeySearcher/Presentation/Controls/StatisticsPresentation.xaml.cs

    r2703 r2704  
    629629                            max = machines[id].Date;
    630630                        }
    631                         return max.ToLocalTime();
     631                        return max.ToLocalTime().ToString("g", DateTimeFormatInfo.InvariantInfo);
    632632                    }
    633633                }
     
    636636            {
    637637            }
    638             return DateTime.UtcNow.ToLocalTime();
     638            return DateTime.UtcNow.ToLocalTime().ToString("g", DateTimeFormatInfo.InvariantInfo);
    639639        }
    640640
     
    658658                    lock (StatisticsPresentation)
    659659                    {
    660                      
    661                         return ((DateTime)value).ToLocalTime();
     660
     661                        return ((DateTime)value).ToLocalTime().ToString("g", DateTimeFormatInfo.InvariantInfo);
    662662                    }
    663663                }
     
    666666            {
    667667            }
    668             return DateTime.UtcNow.ToLocalTime();
     668            return DateTime.UtcNow.ToLocalTime().ToString("g", DateTimeFormatInfo.InvariantInfo);
    669669        }
    670670
Note: See TracChangeset for help on using the changeset viewer.