From 51a2c5d32941e0c36fc6aeab1419af196fa9d677 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 16 Sep 2013 10:32:19 +0900 Subject: [PATCH] =?UTF-8?q?uniqid=20=ED=95=A8=EC=88=98=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EB=85=84=EB=8F=84=EB=A5=BC=204=EC=9E=90=EB=A6=AC=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index da9291489..116182e45 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1933,7 +1933,7 @@ function get_uniqid() sql_query(" LOCK TABLE {$g5['uniqid_table']} WRITE "); while (1) { // 년월일시분초에 100분의 1초 두자리를 추가함 (1/100 초 앞에 자리가 모자르면 0으로 채움) - $key = date('ymdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT); + $key = date('YmdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT); $result = sql_query(" insert into {$g5['uniqid_table']} set uq_id = '$key', uq_ip = '{$_SERVER['REMOTE_ADDR']}' ", false); if ($result) break; // 쿼리가 정상이면 빠진다.