Skip to content

Commit

Permalink
Model: 修复时间未加8小时的错误
Browse files Browse the repository at this point in the history
根据与官网显示的比对,API返回的时间是UTC时间,需要加8小时
  • Loading branch information
SkiTiSu authored Oct 27, 2016
1 parent 6ae3371 commit 762283a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bilibili2/Class/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public string Created_at
{
get
{
DateTime dtStart = new DateTime(1970, 1, 1);
DateTime dtStart = new DateTime(1970, 1, 1, 8, 0, 0);
long lTime = long.Parse(pubdate + "0000000");
//long lTime = long.Parse(textBox1.Text);
TimeSpan toNow = new TimeSpan(lTime);
Expand Down

0 comments on commit 762283a

Please sign in to comment.