Skip to content

Commit

Permalink
The generated timestamp string for filter is wrong
Browse files Browse the repository at this point in the history
Description

  The format should be yyyy-MM-ddTHH:mm:ssZ
  instead of           yyyy-MM-ddThh:mm:ssZ.

  HH for the hour between 0 and 24, hh for the hour between 0 and 12.
  • Loading branch information
weibz committed Jul 11, 2023
1 parent b4091a0 commit a457e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ams/BaseMigrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ await _console
// When --creation-time-start or --create-time-end option is set,
// Convert it to the filter format and combine with the current filter option's settings.

var startTime = creationTimeStart?.ToString("yyyy-MM-ddThh:mm:ssZ");
var endTime = creationTimeEnd?.ToString("yyyy-MM-ddThh:mm:ssZ");
var startTime = creationTimeStart?.ToString("yyyy-MM-ddTHH:mm:ssZ");
var endTime = creationTimeEnd?.ToString("yyyy-MM-ddTHH:mm:ssZ");

if (startTime != null)
{
Expand Down

0 comments on commit a457e69

Please sign in to comment.