Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
fix new date error in safari
Browse files Browse the repository at this point in the history
  • Loading branch information
exolution committed Nov 1, 2016
1 parent 989ce47 commit 20c3445
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WeexOne/src/modules/main.we
Expand Up @@ -78,7 +78,7 @@
color: white;
text-align: left;
font-size: 70px;
line-height: 48px;
line-height: 70px;
margin-bottom: 0px;
margin-left: 20px;
margin-right: 20px;
Expand Down Expand Up @@ -158,10 +158,10 @@

for (var i = 0; i < tempData.length; i++) {
var datap = tempData[i];
var hpMarketTime = new Date(datap.hp_makettime);
var hpMarketTime = new Date(datap.hp_makettime.split(' ')[0]);
datap.hp_day = hpMarketTime.getDate();
datap.hp_month = monthdata[hpMarketTime.getMonth()];
datap.hp_year = hpMarketTime.getYear() + 1900;
datap.hp_year = hpMarketTime.getFullYear();
}
self.showMainSlider=true;

Expand Down

0 comments on commit 20c3445

Please sign in to comment.