mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-11 11:45:16 -05:00
Use web server time, not database time. (solves a race condition.)
This commit is contained in:
@@ -503,7 +503,8 @@ namespace PkmnFoundations.Data
|
||||
public void GtsSetLastSearch4(MySqlTransaction tran, int pid)
|
||||
{
|
||||
tran.ExecuteNonQuery("UPDATE GtsProfiles4 SET TimeLastSearch = " +
|
||||
"GETUTCDATE() WHERE pid = @pid", new MySqlParameter("@pid", pid));
|
||||
"@now WHERE pid = @pid", new MySqlParameter("@now", DateTime.UtcNow),
|
||||
new MySqlParameter("@pid", pid));
|
||||
}
|
||||
|
||||
public override void GtsSetLastSearch4(int pid)
|
||||
@@ -1437,7 +1438,8 @@ namespace PkmnFoundations.Data
|
||||
public void GtsSetLastSearch5(MySqlTransaction tran, int pid)
|
||||
{
|
||||
tran.ExecuteNonQuery("UPDATE GtsProfiles5 SET TimeLastSearch = " +
|
||||
"GETUTCDATE() WHERE pid = @pid", new MySqlParameter("@pid", pid));
|
||||
"@now WHERE pid = @pid", new MySqlParameter("@now", DateTime.UtcNow),
|
||||
new MySqlParameter("@pid", pid));
|
||||
}
|
||||
|
||||
public override void GtsSetLastSearch5(int pid)
|
||||
|
||||
Reference in New Issue
Block a user