DateTime fix
This commit is contained in:
parent
238832cbbd
commit
cd33053885
1 changed files with 4 additions and 3 deletions
|
@ -138,6 +138,9 @@ namespace BirdsiteLive.Twitter
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
|
string creationTime = tweet.GetProperty("content").GetProperty("itemContent")
|
||||||
|
.GetProperty("tweet_results").GetProperty("result").GetProperty("legacy")
|
||||||
|
.GetProperty("created_at").GetString();
|
||||||
var extractedTweet = new ExtractedTweet
|
var extractedTweet = new ExtractedTweet
|
||||||
{
|
{
|
||||||
Id = Int64.Parse(tweet.GetProperty("sortIndex").GetString()),
|
Id = Int64.Parse(tweet.GetProperty("sortIndex").GetString()),
|
||||||
|
@ -146,9 +149,7 @@ namespace BirdsiteLive.Twitter
|
||||||
MessageContent = tweet.GetProperty("content").GetProperty("itemContent")
|
MessageContent = tweet.GetProperty("content").GetProperty("itemContent")
|
||||||
.GetProperty("tweet_results").GetProperty("result").GetProperty("legacy")
|
.GetProperty("tweet_results").GetProperty("result").GetProperty("legacy")
|
||||||
.GetProperty("full_text").GetString(),
|
.GetProperty("full_text").GetString(),
|
||||||
CreatedAt = DateTime.Now, //tweet.GetProperty("content").GetProperty("itemContent")
|
CreatedAt = DateTime.Parse(creationTime),
|
||||||
// .GetProperty("tweet_results").GetProperty("result").GetProperty("legacy")
|
|
||||||
// .GetProperty("created_at").GetDateTime(),
|
|
||||||
IsReply = false,
|
IsReply = false,
|
||||||
IsThread = false,
|
IsThread = false,
|
||||||
IsRetweet = false,
|
IsRetweet = false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue