Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific Date and Time not being recognized #142

Open
jmdilley opened this issue Nov 16, 2021 · 1 comment
Open

Specific Date and Time not being recognized #142

jmdilley opened this issue Nov 16, 2021 · 1 comment
Labels

Comments

@jmdilley
Copy link

jmdilley commented Nov 16, 2021

Describe the bug
When I invoke Dexter with TODAY and CURRENT_HOUR, everything works fine. When I supply a specific date and specific time, I can see in the output that the values are parsed correctly. However, the Date resolves to that Date GMT at midnight, with a local time of the previous day, adjusted by our offset (GMT-6). When it pairs the Date up with the Time, it's using the Local Date (1 day earlier) instead of the Date I pass in..

Parsed MarkDate '2021-11-16Z' as '2021-11-16T00:00:00.0000000Z', local '2021-11-15T18:00:00.0000000-06:00'
Parsed MarkTime '21:00:00Z' as '2021-11-16T21:00:00.0000000Z', local '2021-11-16T15:00:00.0000000-06:00'
Parsed Duration '-1:00:00' as '-01:00:00'
DateTimeMark '2021-11-15T21:00:00.0000000Z', local '2021-11-15T15:00:00.0000000-06:00'

To Reproduce
Steps to reproduce the behavior:
Invoke Dexter with Date: 2021-11-16Z and Time: 21:00:00Z and Duration: -1:00:00

Expected behavior
The Date parse would be the date used

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • .NET Framework Type Core (Not Core Portable)
  • .NET/.NET Core Framework Version

Logs
2021-11-16 16:41:03.355 INFO 7351 --- [ool-20-thread-1] c.g.c.s.a.d.DexterExecutor : Parsed MarkDate '2021-11-16Z' as '2021-11-16T00:00:00.0000000Z', local '2021-11-15T18:00:00.0000000-06:00'
2021-11-16 16:41:03.355 INFO 7351 --- [ool-20-thread-1] c.g.c.s.a.d.DexterExecutor : Parsed MarkTime '21:00:00Z' as '2021-11-16T21:00:00.0000000Z', local '2021-11-16T15:00:00.0000000-06:00'
2021-11-16 16:41:03.355 INFO 7351 --- [ool-20-thread-1] c.g.c.s.a.d.DexterExecutor : Parsed Duration '-1:00:00' as '-01:00:00'
2021-11-16 16:41:03.355 INFO 7351 --- [ool-20-thread-1] c.g.c.s.a.d.DexterExecutor : DateTimeMark '2021-11-15T21:00:00.0000000Z', local '2021-11-15T15:00:00.0000000-06:00'
2021-11-16 16:41:03.355 INFO 7351 --- [ool-20-thread-1] c.g.c.s.a.d.DexterExecutor : DateTimeMarkPlusDuration '2021-11-15T20:00:00.0000000Z', local '2021-11-15T14:00:00.0000000-06:00'
2021-11-16 16:41:03.356 INFO 7351 --- [ool-20-thread-1] c.g.c.s.a.d.DexterExecutor : UTC Input.TimeRange.From='2021-11-15T20:00:00.0000000Z' to Input.TimeRange.To='2021-11-15T21:00:00.0000000Z'
2021-11-16 16:41:03.356 INFO 7351 --- [ool-20-thread-1] c.g.c.s.a.d.DexterExecutor : Local Input.TimeRange.From='2021-11-15T14:00:00.0000000-06:00' to Input.TimeRange.To='2021-11-15T15:00:00.0000000-06:00'

From the generated jobParameters.json:

{
"Input": {
"TimeFrame": {
"MarkDate": "2021-11-16Z",
"MarkTime": "20:00:00Z",
"Duration": "-1:00:00"
},
"TimeRange": {
"From": "2021-11-15T19:00:00Z",
"To": "2021-11-15T20:00:00Z"
},
"HourlyTimeRanges": [
{
"From": "2021-11-15T19:00:00Z",
"To": "2021-11-15T20:00:00Z"
}
],

Reports
Include any produced reports that you have issues with

@jmdilley jmdilley added the bug label Nov 16, 2021
@jmdilley
Copy link
Author

Any hope of this getting worked? It's been 4 months...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant