Skip to content

Commit

Permalink
Make /time use yyyy-mm-dd format, as well as /server backup db
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed May 11, 2022
1 parent 7e0ff9a commit 1d4445b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/Information/CmdTime.cs
Expand Up @@ -26,7 +26,7 @@ public sealed class CmdTime : Command2 {
public override bool UseableWhenFrozen { get { return true; } }

public override void Use(Player p, string message, CommandData data) {
p.Message("Server time: {0:HH:mm:ss} on {0:d}", DateTime.Now);
p.Message("Server time: {0:HH:mm:ss} on {0:yyyy-MM-dd}", DateTime.Now);
if (!ZSGame.Instance.Running) return;

TimeSpan delta = ZSGame.Instance.RoundEnd - DateTime.UtcNow;
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Server/Maintenance/Backup.cs
Expand Up @@ -172,7 +172,7 @@ public static class Backup {
// NOTE: This does NOT account for foreign keys, BLOBs etc. It only works for what we actually put in the DB.
sql.WriteLine("-- {0} SQL database dump", Server.SoftwareNameVersioned);
sql.WriteLine("-- Host: {0}", Server.Config.MySQLHost);
sql.WriteLine("-- Generated on {0:d} at {0:HH:mm:ss}", DateTime.Now);
sql.WriteLine("-- Generated on {0:yyyy-MM-dd} at {0:HH:mm:ss}", DateTime.Now);
sql.WriteLine();
sql.WriteLine();

Expand Down

0 comments on commit 1d4445b

Please sign in to comment.