Is it possible to obtain data on the time when the entry was created? I know that with API we get information about how long a given task lasted, but I haven’t found information if it is possible to see WHEN a given entry was created
Hi there, welcome to Clockify Forum!
Clockify does have an Audit Log feature with which you can track changes on time entries, projects, tasks, clients, and tags.
With this feature, you would be able to see when someone created a time entry. Here you can read more about it.
If you are using the API you might be able to get creation time from the time entry ID - Clockify uses MongoDB and MongoDB’s ObjectID is a unique identifier that is built up froma various bits - See ObjectId — MongoDB Manual
From those docs it consists of:
- A 4-byte timestamp, representing the ObjectId’s creation, measured in seconds since the Unix epoch.
- A 5-byte random value generated once per process. This random value is unique to the machine and process.
- A 3-byte incrementing counter, initialized to a random value.
While the BSON format itself is little-endian, the timestamp and counter values are big-endian, the most significant bytes appear first in the byte sequence.
If an integer value is used to create an ObjectId, the integer replaces the timestamp.
… so with a bit of work you might be able to carve out the creation time from that