mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-10 05:41:39 +00:00
fix: check if row.timestamp is Date
This commit is contained in:
1 parent
770b957b42
commit
5d049e8f06
1 file changed
+1
-1
@@ -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'
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user