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

Commit

Permalink
Timestamp is nullable so needed to refer to the Value property
Browse files Browse the repository at this point in the history
  • Loading branch information
b-dur committed Sep 17, 2015
1 parent a4f7e62 commit 89a5059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Analytics/Model/BaseAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ 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("o");
this.Timestamp = options.Timestamp.Value.ToString("o");
else
this.Timestamp = DateTime.Now.ToString("o");
this.Context = options.Context;
Expand Down

0 comments on commit 89a5059

Please sign in to comment.