Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from b-dur/patch-1
Browse files Browse the repository at this point in the history
Formatted Timestamp to Round-trip date/time pattern
  • Loading branch information
f2prateek committed Sep 17, 2015
2 parents b72b826 + 89a5059 commit a50543d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Analytics/Model/BaseAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ internal BaseAction(string type, string UserId, Options options)
this.Type = type;
this.MessageId = Guid.NewGuid ().ToString();
if (options.Timestamp.HasValue)
this.Timestamp = options.Timestamp.ToString ();
else
this.Timestamp = DateTime.Now.ToString("o");
this.Timestamp = options.Timestamp.Value.ToString("o");
else
this.Timestamp = DateTime.Now.ToString("o");
this.Context = options.Context;
this.Integrations = options.Integrations;
this.AnonymousId = options.AnonymousId;
Expand Down

0 comments on commit a50543d

Please sign in to comment.