From 2658fbe02db49a59360855c11c71ec18434681b2 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 15 Jan 2014 13:31:30 +0900 Subject: [PATCH] =?UTF-8?q?uq=5Fid=20=EB=85=84=EB=8F=84=204=EC=9E=90?= =?UTF-8?q?=EB=A6=AC=20=ED=91=9C=EC=8B=9C=EB=A1=9C=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 b16e8d2df..638a249e8 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1930,7 +1930,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; // 쿼리가 정상이면 빠진다.