mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 21:22:30 +00:00
Switch to date builtin instead of moment
This commit is contained in:
parent
4b2e22c257
commit
3bc48a7a05
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
async = require("async")
|
||||
moment = require('moment')
|
||||
logger = require("logger-sharelatex")
|
||||
projectDeleter = require("./ProjectDeleter")
|
||||
projectDuplicator = require("./ProjectDuplicator")
|
||||
|
@ -440,7 +439,7 @@ module.exports = ProjectController =
|
|||
{
|
||||
id: project.id
|
||||
name: project.title
|
||||
lastUpdated: moment.unix(project.updated_at)
|
||||
lastUpdated: new Date(project.updated_at * 1000) # Convert from epoch
|
||||
accessLevel: "readOnly",
|
||||
archived: project.removed || project.archived
|
||||
isV1Project: true
|
||||
|
|
Loading…
Reference in a new issue