mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
fix: check if row.timestamp is Date
This commit is contained in:
parent
770b957b42
commit
5d049e8f06
@ -29,7 +29,7 @@ class OldAppNameService extends BaseService {
|
||||
|
||||
// Check if the app has been renamed in the last N months
|
||||
const [row] = rows;
|
||||
const timestamp = new Date(
|
||||
const timestamp = row.timestamp instanceof Date ? row.timestamp : new Date(
|
||||
// Ensure timestamp ir processed as UTC
|
||||
row.timestamp.endsWith('Z') ? row.timestamp : row.timestamp + 'Z'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user