'Why would ASP.NET Core FileProvider methods return a different timestamp than than the IIS server time settings

I am using ASP.NET Core FileProvider class to pull the last modified date from a local IIS Server. The IIS server shows eastern standard time when I log in which is correct but when I run my code below it returns a time stamp that is four hours forward. My ASP.NET code is running on a PC that is also US eastern standard time so I am not sure what is causing this four hour difference or if there is a way to ensure these time zone difference do not cause confusion for users on the front end.

                    foreach (var file in mainreviewdocuments)
                {

                    file["DATE_LAST_MODIFIED"] = _fileProvider.GetFileInfo(file["DOCUMENT_FULL_PATH"].ToString()).LastModified.ToString("MM/dd/yyyy hh:mm tt");
                    
                }

                json = Newtonsoft.Json.JsonConvert.SerializeObject(mainreviewdocuments);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source