Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Issue serializing the datetimes within Tweet (from GetUserTimeline) #25

@RocketPop

Description

@RocketPop

I'm attempting to cache tweet queries in our iOS app. To do this I take the response and attempt to serialize it like so:

var tweetResponse = await _twitterSession.GetUserTimeline(TwitterHandle, 0, 0, 0, 100);

Where _twitterSession is an ApplicationSession from our app (this works fine) then :

var tweetstring = jsonConverter.SerializeObject(tweetResponse);
// Stick that string in cache goes here and then later (...)
var oldTweetObjects = jsonConverter.DeserializeObject<TwitterResponseCollection<BoxKite.Twitter.Models.Tweet>>(tweetstring);

Where our cache mechanism is unimportant and the jsonConverter is just stock JSON.Net. If I then iterate over the deserialzed data, it all appears valid, but the datetime fields are all Day 1, of Month 1, Year 1 - all the tweet times come back "2014 years ago" - hehe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions