Commit 4f43664d by chenweitao

Merge branch 'working' into 'master'

更改时间解析方法调用

See merge request !186
parents 0f550f15 621d4c31
......@@ -30,7 +30,7 @@ public class HotSearchListDAO{
public static MongoCollection mongoCollection;
public HotSearchListDAO() {
String time = TimeParse.dateFormartString(new Date(), "yyyy-MM-dd");
String time = TimeParse.dateFormatString(new Date(), "yyyy-MM-dd");
String year = time.substring(0,4);
String month = time.substring(5,7);
String collName = DBConfig.searchCollName + year + "_" + month;
......
......@@ -18,7 +18,7 @@ public class WeiboSuperTopicDAO{
public static MongoCollection mongoCollection;
public WeiboSuperTopicDAO() {
String time = TimeParse.dateFormartString(new Date(), "yyyy-MM-dd");
String time = TimeParse.dateFormatString(new Date(), "yyyy-MM-dd");
String year = time.substring(0,4);
String month = time.substring(5,7);
String collName = DBConfig.topicCollName + year + "_" + month;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment