{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/297","repository_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet","labels_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/297/comments","events_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/297/events","html_url":"https://github.com/Azure/azure-event-hubs-dotnet/issues/297","id":339670676,"node_id":"MDU6SXNzdWUzMzk2NzA2NzY=","number":297,"title":"Error raise once local time zone in daylight saving zone","user":{"login":"hungtrannet","id":28121078,"node_id":"MDQ6VXNlcjI4MTIxMDc4","avatar_url":"https://avatars1.githubusercontent.com/u/28121078?v=4","gravatar_id":"","url":"https://api.github.com/users/hungtrannet","html_url":"https://github.com/hungtrannet","followers_url":"https://api.github.com/users/hungtrannet/followers","following_url":"https://api.github.com/users/hungtrannet/following{/other_user}","gists_url":"https://api.github.com/users/hungtrannet/gists{/gist_id}","starred_url":"https://api.github.com/users/hungtrannet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungtrannet/subscriptions","organizations_url":"https://api.github.com/users/hungtrannet/orgs","repos_url":"https://api.github.com/users/hungtrannet/repos","events_url":"https://api.github.com/users/hungtrannet/events{/privacy}","received_events_url":"https://api.github.com/users/hungtrannet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-10T02:29:38Z","updated_at":"2018-07-12T00:30:41Z","closed_at":null,"author_association":"NONE","body":"Can you please have a look on this issue ?\r\n\r\n## Actual Behavior from Unity connect to Azure event Hub\r\n1.  Local timezone is Melbourne, australia\r\n2.  Connect to Event hub using \r\nvar  eventHubClient = EventHubClient.CreateFromConnectionString(connectionString.ToString());\r\n \r\n3. Create Receiver \r\n  var eventHubReceiver = eventHubClient.CreateReceiver(\"$Default\",partition,DateTime.Now);\r\n4. receive message \r\n var events = await eventHubReceiver.ReceiveAsync(100);\r\n\r\n## Expected Behavior\r\n1.  message return.\r\n\r\n## Error Happend: \r\n\r\n\"System.TypeInitializationException: The type initializer for 'Microsoft.Azure.Amqp.AmqpConstants' threw an exception. \r\n---> System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.\\r\\n  \r\nat System.DateTime.DateToTicks (System.Int32 year, System.Int32 month, System.Int32 day) [0x00077] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.DateTime..ctor (System.Int32 year, System.Int32 month, System.Int32 day) [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.TimeZoneInfo.TransitionPoint (System.TimeZoneInfo+TransitionTime transition, System.Int32 year) [0x0003a] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.TimeZoneInfo.IsInDSTForYear (System.TimeZoneInfo+AdjustmentRule rule, System.DateTime dateTime, System.Int32 year) [0x00030] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.TimeZoneInfo.IsInDST (System.TimeZoneInfo+AdjustmentRule rule, System.DateTime dateTime) [0x0000a] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.TimeZoneInfo.GetUtcOffsetHelper (System.DateTime dateTime, System.TimeZoneInfo tz, System.Boolean& isDST) [0x000ce] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.TimeZoneInfo.GetUtcOffset (System.DateTime dateTime, System.Boolean& isDST) [0x00025] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n \r\n at System.TimeZoneInfo.ConvertTimeToUtc (System.DateTime dateTime, System.TimeZoneInfo sourceTimeZone, System.TimeZoneInfoOptions flags) [0x0006d] in <e1a80661d61443feb3dbdaac88eeb776>:0 \r\n\\r\\n  at System.TimeZoneInfo.ConvertTimeToUtc (System.DateTime dateTime, System.TimeZoneInfoOptions flags) [0x00006] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.DateTime.ToUniversalTime () [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  at Microsoft.Azure.Amqp.AmqpConstants..cctor () [0x000c2] in <616fe4335f4247df9154a12b01deecf3>:0 \\r\\n   --- End of inner exception stack trace ---\\r\\n  \r\nat System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat Microsoft.Azure.EventHubs.Amqp.AmqpPartitionReceiver.OnReceiveAsync (System.Int32 maxMessageCount, System.TimeSpan waitTime) [0x00033] in <b25b42141b0a4c179080faae49b59a5d>:0 \\r\\n  \r\nat Microsoft.Azure.EventHubs.PartitionReceiver+<ReceiveAsync>d__36.MoveNext () [0x0011b] in <b25b42141b0a4c179080faae49b59a5d>:0 \\r\\n\r\n--- End of stack trace from previous location where exception was thrown ---\\r\\n \r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n \r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  \r\nat System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n  a\r\nt System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0 \\r\\n \r\n at Assets.Scripts.Manager+<ReceiveMessagesFromDeviceAsync>c__async0.MoveNext () [0x000cf] in C:\\\\Cyest Repos\\\\pharos\\\\Digiquill.WorkerSafety.Unity\\\\Assets\\\\Scripts\\\\Manager.cs:135 \"\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/comments/404351983","html_url":"https://github.com/Azure/azure-event-hubs-dotnet/issues/297#issuecomment-404351983","issue_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/297","id":404351983,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDM1MTk4Mw==","user":{"login":"serkantkaraca","id":16924470,"node_id":"MDQ6VXNlcjE2OTI0NDcw","avatar_url":"https://avatars1.githubusercontent.com/u/16924470?v=4","gravatar_id":"","url":"https://api.github.com/users/serkantkaraca","html_url":"https://github.com/serkantkaraca","followers_url":"https://api.github.com/users/serkantkaraca/followers","following_url":"https://api.github.com/users/serkantkaraca/following{/other_user}","gists_url":"https://api.github.com/users/serkantkaraca/gists{/gist_id}","starred_url":"https://api.github.com/users/serkantkaraca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkantkaraca/subscriptions","organizations_url":"https://api.github.com/users/serkantkaraca/orgs","repos_url":"https://api.github.com/users/serkantkaraca/repos","events_url":"https://api.github.com/users/serkantkaraca/events{/privacy}","received_events_url":"https://api.github.com/users/serkantkaraca/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T00:30:41Z","updated_at":"2018-07-12T00:30:41Z","author_association":"MEMBER","body":"Great, can you also share below information?\r\n\r\n* .NET runtime\r\n* OS\r\n* Region and language "}}
{"actor":{"display_login":"serkantkaraca"}}