We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d2966f commit 0d53020Copy full SHA for 0d53020
src/backend/src/services/OldAppNameService.js
@@ -29,11 +29,20 @@ class OldAppNameService extends BaseService {
29
30
// Check if the app has been renamed in the last N months
31
const [row] = rows;
32
- const timestamp = new Date(row.timestamp);
+ const timestamp = new Date(
33
+ // Ensure timestamp ir processed as UTC
34
+ row.timestamp.endsWith('Z') ? row.timestamp : row.timestamp + 'Z'
35
+ );
36
37
const age = Date.now() - timestamp.getTime();
38
- const n_ms = N_MONTHS * 30 * 24 * 60 * 60 * 1000
39
+ const n_ms = 60 * 1000;
40
+ // const n_ms = N_MONTHS * 30 * 24 * 60 * 60 * 1000
41
+ this.log.noticeme('AGE INFO', {
42
+ input_time: row.timestamp,
43
+ age,
44
+ n_ms,
45
+ });
46
if ( age > n_ms ) {
47
// Remove record
48
await this.db.write(
0 commit comments