Skip to content

This post shows up still in 2019 🔢 #2388

@bswatantra

Description

@bswatantra

This post shows up still in 2019 🔢

use MongoDB\BSON\UTCDateTime;

new UTCDateTime(new \DateTime('now'));

Carbon extends DateTime so a carbon instance should be usable:

new UTCDateTime(Carbon::now());

Originally posted by @marcnewton in #594 (comment)

Metadata

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