{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/sdk/issues/2251","repository_url":"https://api.github.com/repos/dotnet/sdk","labels_url":"https://api.github.com/repos/dotnet/sdk/issues/2251/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/2251/comments","events_url":"https://api.github.com/repos/dotnet/sdk/issues/2251/events","html_url":"https://github.com/dotnet/sdk/issues/2251","id":323843064,"number":2251,"title":"ResolvePackageAssets time offset error on Ubuntu 16.04/18.04","user":{"login":"jmacato","id":16554748,"avatar_url":"https://avatars0.githubusercontent.com/u/16554748?v=4","gravatar_id":"","url":"https://api.github.com/users/jmacato","html_url":"https://github.com/jmacato","followers_url":"https://api.github.com/users/jmacato/followers","following_url":"https://api.github.com/users/jmacato/following{/other_user}","gists_url":"https://api.github.com/users/jmacato/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacato/subscriptions","organizations_url":"https://api.github.com/users/jmacato/orgs","repos_url":"https://api.github.com/users/jmacato/repos","events_url":"https://api.github.com/users/jmacato/events{/privacy}","received_events_url":"https://api.github.com/users/jmacato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nguerrera","id":75470,"avatar_url":"https://avatars0.githubusercontent.com/u/75470?v=4","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false},"assignees":[{"login":"nguerrera","id":75470,"avatar_url":"https://avatars0.githubusercontent.com/u/75470?v=4","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/sdk/milestones/13","html_url":"https://github.com/dotnet/sdk/milestone/13","labels_url":"https://api.github.com/repos/dotnet/sdk/milestones/13/labels","id":3199277,"number":13,"title":"2.1.4xx","description":"","creator":{"login":"livarcocc","id":367554,"avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"open_issues":65,"closed_issues":9,"state":"open","created_at":"2018-03-19T17:14:31Z","updated_at":"2018-05-17T20:40:37Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2018-05-17T01:40:02Z","updated_at":"2018-05-21T15:32:42Z","closed_at":null,"author_association":"NONE","body":"The following exception is thrown on debug/release:\r\n```\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018: The \"ResolvePackageAssets\" task failed unexpectedly. [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018: System.ArgumentOutOfRangeException: Offset must be within plus or minus 14 hours. [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018: Parameter name: offset [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at System.DateTimeOffset.ValidateOffset(TimeSpan offset) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at System.DateTimeOffset..ctor(DateTime dateTime) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at System.DateTimeOffset.FromFileTime(Int64 fileTime) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at System.IO.FileStatus.GetLastWriteTime(ReadOnlySpan`1 path, Boolean continueOnError) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at System.IO.FileSystem.GetLastWriteTime(String fullPath) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at System.IO.File.GetLastWriteTimeUtc(String path) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader.CreateReaderFromDisk(ResolvePackageAssets task, Byte[] settingsHash) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader..ctor(ResolvePackageAssets task) [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups() [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore() [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [<redacted>.csproj]\r\n/usr/share/dotnet/sdk/2.1.300-rc1-008673/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(197,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [<redacted>.csproj]\r\n```\r\nI was using an older version `dotnet-sdk-2.1.200` then purged that and installed 2.1 RC1. i also cleared /usr/share/dotnet & $HOME/.nuget prior to upgrade.\r\n\r\nI encountered this bug while compiling an [Avalonia](https://github.com/AvaloniaUI/Avalonia) app. This also occurs  on the console app 'Hello World' template and on `dotnet clean`.\r\n\r\n\r\nUpdate : The build works when i set my timezone to UTC (Had it set to UTC+8 before). it's quite a pain to go back and forth timezones however.. "},"comment":{"url":"https://api.github.com/repos/dotnet/sdk/issues/comments/390690408","html_url":"https://github.com/dotnet/sdk/issues/2251#issuecomment-390690408","issue_url":"https://api.github.com/repos/dotnet/sdk/issues/2251","id":390690408,"user":{"login":"nguerrera","id":75470,"avatar_url":"https://avatars0.githubusercontent.com/u/75470?v=4","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T15:32:42Z","updated_at":"2018-05-21T15:32:42Z","author_association":"MEMBER","body":"This issue was moved to dotnet/corefx#29820"}}
{"actor":{"display_login":"nguerrera"}}