Ignore:
Timestamp:
Aug 6, 2022, 11:32:32 PM (2 years ago)
Author:
alloc
Message:

Big refactoring in Web to pass around a Context instead of a bunch of individual arguments all the time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/MapRendering/Web/LogBuffer.cs

    r382 r387  
    127127                public class LogEntry {
    128128                        public readonly DateTime timestamp;
    129                         public readonly string date;
    130                         public readonly string time;
    131129                        public readonly string isoTime;
    132130                        public readonly string message;
     
    137135                        public LogEntry (DateTime _timestamp, string _message, string _trace, LogType _type, long _uptime) {
    138136                                timestamp = _timestamp;
    139                                 date = $"{_timestamp.Year:0000}-{_timestamp.Month:00}-{_timestamp.Day:00}";
    140                                 time = $"{_timestamp.Hour:00}:{_timestamp.Minute:00}:{_timestamp.Second:00}";
    141137                                isoTime = _timestamp.ToString ("o");
    142138
Note: See TracChangeset for help on using the changeset viewer.