Added Registered field to user db.

Set all those time based fields to use UtcNow, sortable
This commit is contained in:
Zack Piispanen 2013-09-30 20:32:43 -04:00
parent b8fdb6467c
commit 038b2c027d
3 changed files with 12 additions and 6 deletions

View file

@ -124,7 +124,7 @@ namespace TShockAPI.DB
{
try
{
return database.Query("INSERT INTO Bans (IP, Name, Reason, BanningUser, Date, Expiration) VALUES (@0, @1, @2, @3, @4, @5);", ip, name, reason, banner, DateTime.Now.ToString("G"), expiration) != 0;
return database.Query("INSERT INTO Bans (IP, Name, Reason, BanningUser, Date, Expiration) VALUES (@0, @1, @2, @3, @4, @5);", ip, name, reason, banner, DateTime.UtcNow.ToString("s"), expiration) != 0;
}
catch (Exception ex)
{