Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    How to change date format on newly imported packages?

    Scheduled Pinned Locked Moved Support
    7 Posts 2 Posters 15 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      itinfrastructure_7135
      last edited by

      Hello,

      I have bulk imported lots of packages to a ProGet server via the drop-path feature when I noticed that the region of the Windows server hosting ProGet was incorrectly set to American date format MM/DD/YYYY. I have now changed this to Australian date format. DD/MM/YYYY.

      As a result, when I go to Feed > NuGet >> and pick any package, the "Last Updated" field shows the incorrect date format.

      Q1: Is there a simple way to change this to Australian date format for all packages?
      Q2: Does it have any impact on the functionality of ProGet and how we search packages?

      ProGet version 5.1.16

      Thanks!
      K>

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @itinfrastructure_7135
        last edited by

        Hi @itinfrastructure_7135 ,

        Dates in ProGet are stored as utc datetimes, and then are displayed using .NET's date formatting functions, which in turn uses the operating system's setting.

        So I guess, if you just restart the server, maybe the setting will take, and dates will be displayed as epxected?

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0
        • I Offline
          itinfrastructure_7135
          last edited by

          Hi Alana,

          That's what I thought, but unfortunately this is not the case. I have restarted ProGet service from Windows > Servies as well as from ProGet > Administration > Manage Service > Restart Web Application.

          Any other suggestion?

          Thanks,
          K>

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @itinfrastructure_7135
            last edited by

            Hi @itinfrastructure_7135 ,

            Did you restart the server? The setting is at operating-system level, so you will need full reboot of server.

            Cheers,
            Alana

            1 Reply Last reply Reply Quote 0
            • I Offline
              itinfrastructure_7135
              last edited by

              Hi Alana,

              Yes, the server was also restarted but didn't help.

              atrippA 1 Reply Last reply Reply Quote 0
              • atrippA Offline
                atripp inedo-engineer @itinfrastructure_7135
                last edited by

                Hi @itinfrastructure_7135 ,

                I researched this some more, and it looks like it's also configurable per-user. So you'll need to change the regional setting of whatever account ProGet is running under it looks like.

                I've never done this before, and it's something handled by the operating system... but I searched " change regional settings per user windows" and found a number of results, but this one looks promising: https://docs.microsoft.com/en-us/answers/questions/254248/default-global-regional-setting.html

                Hope that helps!

                Cheers,
                Alana

                1 Reply Last reply Reply Quote 0
                • I Offline
                  itinfrastructure_7135
                  last edited by

                  Fantastic, that worked and I learned something new today :) "Regional settings are per user" and since ProGet runs under Network Services account, changing it simply for the current user made no difference.

                  Awesome support, thank you!
                  K>

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation