Skip to content

DateTimeReference is null #612

@andreasjordan

Description

@andreasjordan

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: dataplat/dbatools#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions