Skip to content

Conversation

@Fyusel
Copy link
Contributor

@Fyusel Fyusel commented Jan 21, 2025

GetServiceStatusExecute was deprecated on 2024-04-16 and was now removed.
ExpiredDate was changed to time instead of string

Function was deprecated on 2024-04-16 and was now removed.

Signed-off-by: Alexander Dahmen <[email protected]>
@Fyusel Fyusel force-pushed the fix/remove-ske-getServiceStatusExecute branch from bf7bf7e to 3682103 Compare January 21, 2025 16:11
Signed-off-by: Alexander Dahmen <[email protected]>
@Fyusel Fyusel changed the title Remove GetServiceStatusExecute for ske service Adjust CLI regarding ske API changes Jan 21, 2025
TimeWindow: &ske.TimeWindow{
End: utils.Ptr("0000-01-01T05:00:00+02:00"),
Start: utils.Ptr("0000-01-01T03:00:00+02:00"),
End: utils.Ptr(time.Date(0000, 01, 01, 5, 0, 0, 0, time.UTC)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a matter of personal style I prefer something like this:

func mustDateParse(fmt, val string) time.Time {
	time, err := time.Parse(fmt, val)
	if err != nil {
		log.Panicf("cannot parse %q with format %q: %v", val, fmt, err)
	}
	return time
}
...
			End:   utils.Ptr(mustDateParse(time.RFC3339, "0000-01-01T05:00:00+02:00")),

but the current one is totally correct

bahkauv70
bahkauv70 previously approved these changes Jan 22, 2025
@bahkauv70
Copy link
Contributor

Closing this PR as it has been merged indirectly via renovate PR #573

@bahkauv70 bahkauv70 closed this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants