Skip to content

New-GSCalendarEvent creates all day events (ignoring StartDate and EndDate) #392

Open
@Hooch76

Description

Describe the bug
The following example ca be found on https://psgsuite.io/Function%20Help/Calendar/New-GSCalendarEvent/#example-1
New-GSCalendarEvent "Go to the gym" -StartDate (Get-Date "21:00:00") -EndDate (Get-Date "22:00:00")
This creates an "all day" event instead of an event starting at 21:00 and ending at 22:00.

To Reproduce
Steps to reproduce the behavior:

  1. Run the powershell example: New-GSCalendarEvent "Go to the gym" -StartDate (Get-Date "21:00:00") -EndDate (Get-Date "22:00:00")
  2. Examine calendar. It will show an "all day" event:

Image

Expected behavior
The event should start and end at the given times. It should not be an all day event.

Screenshots
See above at step 2.

Environment (please complete the following information):

  • OS: Windows 11 24H2 (10.0.26100.2894)
  • PowerShell Version: Windows PowerShell 5.1
  • PSGSuite Version: 2.36.4

Additional context
Add any other context about the problem here.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions