datetime fun
This commit is contained in:
parent
cd33053885
commit
625096f934
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ namespace BirdsiteLive.Twitter
|
|||
|
||||
string creationTime = tweet.GetProperty("content").GetProperty("itemContent")
|
||||
.GetProperty("tweet_results").GetProperty("result").GetProperty("legacy")
|
||||
.GetProperty("created_at").GetString();
|
||||
.GetProperty("created_at").GetString().Replace(" +0000", "");
|
||||
var extractedTweet = new ExtractedTweet
|
||||
{
|
||||
Id = Int64.Parse(tweet.GetProperty("sortIndex").GetString()),
|
||||
|
@ -149,7 +149,7 @@ namespace BirdsiteLive.Twitter
|
|||
MessageContent = tweet.GetProperty("content").GetProperty("itemContent")
|
||||
.GetProperty("tweet_results").GetProperty("result").GetProperty("legacy")
|
||||
.GetProperty("full_text").GetString(),
|
||||
CreatedAt = DateTime.Parse(creationTime),
|
||||
CreatedAt = DateTime.ParseExact(creationTime, "ddd MMM dd HH:mm:ss yyyy", System.Globalization.CultureInfo.InvariantCulture),
|
||||
IsReply = false,
|
||||
IsThread = false,
|
||||
IsRetweet = false,
|
||||
|
|
Reference in a new issue