Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Timezones in ubuntu based agent #37

Closed
hardcorehead87 opened this issue Jul 10, 2017 · 3 comments
Closed

Timezones in ubuntu based agent #37

hardcorehead87 opened this issue Jul 10, 2017 · 3 comments

Comments

@hardcorehead87
Copy link
Contributor

We have tests running on the hosted linux preview agents that fail because timezones are missing.
When running a small test on the following docker images I get these results;

docker exec -it microsoft/vsts-agent:ubuntu-16.04-docker-1.12.1-standard

root@c7bad853c997:/var/temp# cat Program.cs
using System;

namespace temp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Timezone test started.");
            var timezones = TimeZoneInfo.GetSystemTimeZones();
            foreach (var timeZoneInfo in timezones)
               Console.WriteLine(timeZoneInfo.Id);
            Console.WriteLine("Timezone test done.");
        }
    }
}
root@c7bad853c997:/var/temp# dotnet run
Timezone test started.
Timezone test done.
root@c7bad853c997:/var/temp# tzselect
/usr/bin/tzselect: line 180: /usr/share/zoneinfo/iso3166.tab: No such file or directory
/usr/bin/tzselect: time zone files are not set up correctly
root@c7bad853c997:/var/temp#
@hardcorehead87
Copy link
Contributor Author

hardcorehead87 commented Jul 19, 2017

As stated in the following issue TZDATA has been removed from the upstream ubuntu image for space savings. This however causes parts of dotnet to malfunction because it depends on this data being available. The intended solution is to manually add the required package.

@hardcorehead87
Copy link
Contributor Author

Fixed in #39

@stepro
Copy link
Member

stepro commented Jul 20, 2017

Merged #39.

@stepro stepro closed this as completed Jul 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants