commandline
commandline copied to clipboard
Better way to handle DateTime parameters
As for now it seems that a DateTime option is simply parsed and therefore converted to local time
It should be possible to keep the date in UTC
Very True. We could probably add an additional property on the OptionAttribute would work. Or a ParsingOptions property for specifying DateTime(Offset) conversion handling.
public class MyOptions
{
[Option("d", DateTimeParsing=DateTimeParsing.Utc]
public DateTime SomeDateTime { get; set; }
}