Skip to content

Commit

Permalink
Merge pull request #174 from SkillsFundingAgency/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rajeshgaddam17 authored Mar 3, 2023
2 parents 81933ce + 44cf63b commit b4c9b8d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@
<value>The Manage T Level results service is unavailable while we process and calculate overall T Level results.</value>
</data>
<data name="Para_Use_Service_From" xml:space="preserve">
<value>You will be able to use the service from 12:00{0}.</value>
<value>You will be able to use the service from {0}.</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public IActionResult UserGuide()
[Route("service-unavailable", Name = RouteConstants.ServiceUnavailable)]
public IActionResult ServiceUnavailable()
{
var serviceAvailableFrom = _configuration.FreezePeriodEndDate.AddDays(1);
var serviceAvailableFrom = _configuration.FreezePeriodEndDate.AddSeconds(1);
var viewModel = new ServiceUnavailableViewModel
{
ServiceAvailableFrom = $"{serviceAvailableFrom.ToString("tt").ToLower()} on {serviceAvailableFrom.DayOfWeek} {serviceAvailableFrom:dd MMMM yyyy}"
ServiceAvailableFrom = $"{serviceAvailableFrom.ToString("hh:mmtt").ToLower()} on {serviceAvailableFrom.DayOfWeek} {serviceAvailableFrom:dd MMMM yyyy}"
};
return View(viewModel);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Mvc;
using Sfa.Tl.ResultsAndCertification.Common.Extensions;
using Sfa.Tl.ResultsAndCertification.Models.Configuration;
using Sfa.Tl.ResultsAndCertification.Tests.Common.BaseTest;
using Sfa.Tl.ResultsAndCertification.Web.Controllers;
using System;
using System.Threading.Tasks;

namespace Sfa.Tl.ResultsAndCertification.Web.UnitTests.Controllers.HelpControllerTests.ServiceUnavailable
Expand All @@ -17,7 +17,7 @@ public override void Setup()
{
Configuration = new ResultsAndCertificationConfiguration
{
FreezePeriodEndDate = "31/07/2022".ParseStringToDateTimeWithFormat()
FreezePeriodEndDate = new DateTime(2022, 07, 31, 23, 59, 59, DateTimeKind.Utc)
};

Controller = new HelpController(Configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class When_Action_IsCalled : TestSetup

public override void Given()
{
_expectedValue = "am on Monday 01 August 2022";
_expectedValue = "12:00am on Monday 01 August 2022";
}

[Fact]
Expand Down

0 comments on commit b4c9b8d

Please sign in to comment.