mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #12850 from overleaf/ii-history-react-fix-disappeared-pseudo-labels
[web] Fix disappeared pseudo labels GitOrigin-RevId: 4d33eb8888cadbccba29ac001e205db8fa717c49
This commit is contained in:
@@ -18,3 +18,12 @@ export function formatTime(date, format = 'h:mm a') {
|
||||
export function relativeDate(date) {
|
||||
return moment(date).calendar()
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} isoTimestamp
|
||||
* @returns {number}
|
||||
*/
|
||||
export function isoToUnix(isoTimestamp) {
|
||||
const unixTimestamp = Date.parse(isoTimestamp) / 1000
|
||||
return unixTimestamp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user