added TimeSerializer.cs for a proper JSON serialization