summaryrefslogtreecommitdiff
path: root/src/char_sql/int_auction.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-27 19:46:17 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-27 19:46:17 +0000
commit0f3c97f0852fcdd43011cd3550449e5ab6037e66 (patch)
treee87dc2c6715a4931951275f19c559f993428714c /src/char_sql/int_auction.c
parentfca8c29c0775ff371526ad9d4cf58d541bd7abb6 (diff)
downloadhercules-0f3c97f0852fcdd43011cd3550449e5ab6037e66.tar.gz
hercules-0f3c97f0852fcdd43011cd3550449e5ab6037e66.tar.bz2
hercules-0f3c97f0852fcdd43011cd3550449e5ab6037e66.tar.xz
hercules-0f3c97f0852fcdd43011cd3550449e5ab6037e66.zip
Removed the calc_times() no-op (bugreport:1289)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12668 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_auction.c')
-rw-r--r--src/char_sql/int_auction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/int_auction.c b/src/char_sql/int_auction.c
index ca99086c7..e29e01e7a 100644
--- a/src/char_sql/int_auction.c
+++ b/src/char_sql/int_auction.c
@@ -79,7 +79,7 @@ unsigned int auction_create(struct auction_data *auction)
if( !auction )
return false;
- auction->timestamp = calc_times() + (auction->hours * 3600);
+ auction->timestamp = time(NULL) + (auction->hours * 3600);
StringBuf_Init(&buf);
StringBuf_Printf(&buf, "INSERT INTO `%s` (`seller_id`,`seller_name`,`buyer_id`,`buyer_name`,`price`,`buynow`,`hours`,`timestamp`,`nameid`,`item_name`,`type`,`refine`,`attribute`", auction_db);
@@ -177,7 +177,7 @@ void inter_auctions_fromsql(void)
struct item *item;
char *data;
StringBuf buf;
- unsigned int tick = gettick(), endtick, now = calc_times();
+ unsigned int tick = gettick(), endtick, now = time(NULL);
StringBuf_Init(&buf);
StringBuf_AppendStr(&buf, "SELECT `auction_id`,`seller_id`,`seller_name`,`buyer_id`,`buyer_name`,"