Skip to content

Commit

Permalink
v2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Nov 2, 2021
1 parent 6eb8e02 commit 525756a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PSCalendar.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
RootModule = 'PSCalendar.psm1'

# Version number of this module.
ModuleVersion = '2.3.1'
ModuleVersion = '2.3.2'

# Supported PSEditions
CompatiblePSEditions = @("Desktop", "Core")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ For example, if you are running under the `en-AU` culture, you would need to use

I have tried to make this module culture-aware. Testing across cultures is not an easy process. If you encounter a problem and are not running PowerShell under the `EN-US` culture, run the calendar command you are trying to use with `-Verbose` and post the results in a new issue. Or if you have both Windows PowerShell and PowerShell 7 installed, try the same command in both versions.

Last Updated2021-11-01 18:36:52Z
Last Updated 2021-11-02 18:25:51Z
Binary file modified README.pdf
Binary file not shown.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log for PSCalendar

## v2.3.2

+ Updated `Get-Calendar` to allow start date and end date to be equal. [Issue #26](https://github.com/jdhitsolutions/PSCalendar/issues/26)

## v2.3.1

+ Fixed alignment problem when first day of a row is highlighted in `Get-NCalendar`. [Issue #25](https://github.com/jdhitsolutions/PSCalendar/issues/25).
Expand Down
2 changes: 1 addition & 1 deletion functions/public.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Function Get-Calendar {

#validate $End Issue #26
if ($PSCmdlet.ParameterSetName -eq 'span') {
if ([datetime]$end -le [datetime]$Start) {
if ( [datetime]$end -lt [datetime]$Start) {
Write-Verbose "Validating End ($end) compared to Start ($Start)"
Throw "[Validation Error] The end date ($end) must be later than the start date ($start)"
}
Expand Down

0 comments on commit 525756a

Please sign in to comment.