Commit 0587e6fe by vietdo

#10774 プッシュメッセージの時間表示

parent 2333695b
......@@ -932,7 +932,24 @@ HEADER.getPushMessageList = function() {
// get string from date crate pushmessage
HEADER.getDateCreatePushMessage = function(data) {
return (data.year + 1900) + "/" + (data.month + 1) + "/" + data.date + " " + data.hours + ":" + data.minutes;
var flagMonth = "";
var flagDate = "";
var flagHours = "";
var flagMinutes = "";
if((data.month >=1) && (data.month <= 9)) {
flagMonth = "0";
}
if((data.date >=1) && (data.date <= 9)) {
flagDate = "0";
}
if((data.hours >=1) && (data.hours <= 9)) {
flagHours = "0";
}
if((data.minutes >=1) && (data.minutes <= 9)) {
flagMinutes = "0";
}
return (data.year + 1900) + "/" + flagMonth +(data.month + 1) + "/" + flagDate + data.date + " " + flagHours + data.hours + ":" + flagMinutes + data.minutes;
};
// show push message list
HEADER.showListPushMessage = function(data)
......
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