Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

The date method returns the Unix epoch date instead of today's date if no value or default #11

@abea

Description

@abea

A new branch adds two tests for the date method. First, if the value is falsy and there is no default. The docs say it should be today's date, but it returns the Unix epoch date.

Then if the default and value are null. It should return null, which it does.

To Reproduce

Use the tests in the fix/date-null branch.

Expected behavior

The null value without a default should return today's date.

Describe the bug

It returns the Unix epoch date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions