mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
should be able to queue report using api.
This commit is contained in:
@@ -101,6 +101,19 @@ namespace NzbDrone.Core.Test.Datastore
|
||||
StoredModel.LastExecution.ToLongTimeString().Should().Be(storedTime.ToLongTimeString());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_convert_all_dates_to_utc()
|
||||
{
|
||||
var storedTime = DateTime.Now;
|
||||
|
||||
_sampleType.LastExecution = storedTime;
|
||||
|
||||
Subject.Insert(_sampleType);
|
||||
|
||||
StoredModel.LastExecution.Kind.Should().Be(DateTimeKind.Utc);
|
||||
StoredModel.LastExecution.ToLongTimeString().Should().Be(storedTime.ToUniversalTime().ToLongTimeString());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_have_id_when_returned_from_database()
|
||||
{
|
||||
|
Reference in New Issue
Block a user