Bogus icon indicating copy to clipboard operation
Bogus copied to clipboard

DateTimeReference is null

Open andreasjordan opened this issue 5 months ago • 0 comments

Bogus NuGet Package

not sure - the one that is currently included in dbatools

.NET Version

Current plain Windows Server 2022

Visual Studio Version

none

What operating system are you using?

Windows

What locale are you using with Bogus?

en

Problem Description

We have problems with the new property "DateTimeReference" because it is empty. Please have a look at this PR where we implemented a workaround: https://github.com/dataplat/dbatools/pull/9716

It would be nice to have some more background information so that we can change our code correctly. Or is this a bug on your side?

LINQPad Example or Reproduction Steps

$script:faker = New-Object Bogus.Faker('en')
$supportedFakerSubTypes = ($script:faker | Get-Member -MemberType Property) | ForEach-Object { ($script:faker.$($_.Name)) | Get-Member -MemberType Method | Where-Object { $_.Name -notlike 'To*' -and $_.Name -notlike 'Get*' -and $_.Name -notlike 'Trim*' -and $_.Name -notin 'Add', 'Equals', 'CompareTo', 'Clone', 'Contains', 'CopyTo', 'EndsWith', 'IndexOf', 'IndexOfAny', 'Insert', 'IsNormalized', 'LastIndexOf', 'LastIndexOfAny', 'Normalize', 'PadLeft', 'PadRight', 'Remove', 'Replace', 'Split', 'StartsWith', 'Substring', 'Letter', 'Lines', 'Paragraph', 'Paragraphs', 'Sentence', 'Sentences' } | Select-Object name -ExpandProperty Name }

Expected Behavior

Actual Behavior

Known Workarounds

No response

Could you help with a pull-request?

No

andreasjordan avatar Jul 25 '25 07:07 andreasjordan