Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -152,7 +152,7 @@ namespace Server.Misc
|
|||
|
||||
private static string FormatDirectory( string root, string name, string timeStamp )
|
||||
{
|
||||
return Path.Combine( root, String.Format( "{0} ({1})", name, timeStamp ) );
|
||||
return Path.Combine( root, $"{name} ({timeStamp})");
|
||||
}
|
||||
|
||||
private static string FindTimeStamp( string input )
|
||||
|
|
@ -174,14 +174,7 @@ namespace Server.Misc
|
|||
{
|
||||
DateTime now = DateTime.UtcNow;
|
||||
|
||||
return String.Format( "{0}-{1}-{2} {3}-{4:D2}-{5:D2}",
|
||||
now.Day,
|
||||
now.Month,
|
||||
now.Year,
|
||||
now.Hour,
|
||||
now.Minute,
|
||||
now.Second
|
||||
);
|
||||
return $"{now.Day}-{now.Month}-{now.Year} {now.Hour}-{now.Minute:D2}-{now.Second:D2}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue