Source

stacky / trunk / source / Stacky.Net35 / StackyClientAsync / RevisionMethods.cs

Diff from to

File trunk/source/Stacky.Net35/StackyClientAsync/RevisionMethods.cs

             MakeRequest<Revision>("revisions", new string[] { ids.Vectorize() }, new
             {
                 site = this.SiteUrlName,
-                fromdate = fromDate.HasValue ? (long?)fromDate.Value.ToUnixTime() : null,
-                todate = toDate.HasValue ? (long?)toDate.Value.ToUnixTime() : null
+                fromdate = GetDateValue(fromDate),
+                todate = GetDateValue(toDate),
             }, (items) => onSuccess(items.Items), onError);
         }