Giter Club home page Giter Club logo

Comments (5)

shaniceweiwei avatar shaniceweiwei commented on May 25, 2024

I think for the time being I just do it with onPreSave and check if it is undefined then set new Date().

from firecms.

fgatti675 avatar fgatti675 commented on May 25, 2024

Hi @shaniceweiwei, that was a bug, displaying the current date when it was not set.
In version 0.13.0 this is fixed and empty dates don't show up.
It probably makes sense to add some additional props to add custom behaviours, like initialise as the current date, or update on save. Ideas are welcome! 👍

from firecms.

shaniceweiwei avatar shaniceweiwei commented on May 25, 2024

Hi @shaniceweiwei, that was a bug, displaying the current date when it was not set.
In version 0.13.0 this is fixed and empty dates don't show up.
It probably makes sense to add some additional props to add custom behaviours, like initialise as the current date, or update on save. Ideas are welcome! 👍

Yes, maybe to have a config that allow us to preset Date() ?
By the way, is 0.13.0 released yet? :D

from firecms.

fgatti675 avatar fgatti675 commented on May 25, 2024

It is :)
https://www.npmjs.com/package/@camberi/firecms

I have added your request to a newly created backlog: https://github.com/Camberi/firecms/projects/1?add_cards_query=is%3Aopen

from firecms.

fgatti675 avatar fgatti675 commented on May 25, 2024

Regarding this ticket, you can set now the autoValue flag to timestamp properties, so timestamps get updated with the server value on creation or update

from firecms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.