update
This commit is contained in:
@@ -18,14 +18,17 @@ function pad2(x) {
|
||||
return x<10 ? '0'+x : ''+x;
|
||||
}
|
||||
|
||||
export function format_time(time) {
|
||||
return `${time.getMonth()+1}-${pad2(time.getDate())} ${time.getHours()}:${pad2(time.getMinutes())}:${pad2(time.getSeconds())}`;
|
||||
}
|
||||
|
||||
export function Time(props) {
|
||||
const time=new Date(props.stamp*1000);
|
||||
return (
|
||||
<span>
|
||||
<TimeAgo date={time} formatter={chinese_format} />
|
||||
|
||||
{time.getMonth()+1}-{time.getDate()}
|
||||
{time.getHours()}:{pad2(time.getMinutes())}
|
||||
{format_time(time)}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -102,7 +105,7 @@ export function PromotionBar(props) {
|
||||
return is_ios ? (
|
||||
<div className="box promotion-bar">
|
||||
<span className="icon icon-about" />
|
||||
在 Safari 中将本网站 <b>添加到主屏幕</b> 更好用哦
|
||||
用 Safari 将本网站 <b>添加到主屏幕</b> 更好用
|
||||
</div>
|
||||
) : null;
|
||||
}
|
||||
Reference in New Issue
Block a user