Skip to content

Commit a2212a8

Browse files
authored
Merge pull request #212 from jkrejcha/fix-created-property-obsolete
Obsoletes Created, giving API consumers info (#206).
2 parents 1b2c9b4 + 1fc85b4 commit a2212a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

RedditSharp/Things/CreatedThing.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ public CreatedThing(IWebAgent agent, JToken json) : base(agent, json) {
1919
/// <summary>
2020
/// DateTime when the item was created.
2121
/// </summary>
22+
/// <remarks>
23+
/// This property is broken, as it returns the timestamp with the time
24+
/// zone of the server that served the page. This is almost always
25+
/// completely useless and any new code should use <see cref="CreatedUTC"/>
26+
/// instead. <a href="https://www.reddit.com/comments/29991t">This
27+
/// /r/redditdev post</a> explains more.
28+
/// </remarks>
29+
/// <seealso cref="CreatedUTC"/>
2230
[JsonProperty("created")]
2331
[JsonConverter(typeof(UnixTimestampConverter))]
32+
[Obsolete("Use the CreatedUTC property. This property is buggy and is kept for backwards compatability.")]
2433
public DateTime Created { get; private set; }
2534

2635
/// <summary>

0 commit comments

Comments
 (0)