Skip to content

Commit 38107a5

Browse files
committed
Merge branch 'release.24.10' into release.24.12
# Conflicts: # CHANGELOG.md
2 parents d22ce06 + 35d28ec commit 38107a5

File tree

6 files changed

+51
-275
lines changed

6 files changed

+51
-275
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Version 24.12.x
2+
23
Fixes:
34
- [push] Fixed bug where IOS credentials get mixed up while sending messages from different apps at the same time
45
- [push] Fixed bug where it crashes in connection pool growth because of a type mismatch in an if condition
@@ -9,6 +10,10 @@ Features:
910
Dependencies:
1011
- Bump express from 4.21.1 to 4.21.2
1112
- Bump mocha from 10.2.0 to 10.8.2
13+
- Bump sass from 1.81.0 to 1.83.1
14+
- Bump countly-sdk-nodejs from 24.10.0 to 24.10.1
15+
- Bump express-rate-limit from 7.4.1 to 7.5.0
16+
- Bump puppeteer from 23.10.4 to 23.11.1
1217

1318
## Version 24.12
1419
Features:

api/utils/common.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,13 @@ common.getDate = function(timestamp, timezone) {
693693
* @returns {number} current day of the year
694694
*/
695695
common.getDOY = function(timestamp, timezone) {
696-
var endDate = (timestamp) ? moment.unix(timestamp * 1000) : moment();
696+
var endDate;
697+
if (timestamp && timestamp.toString().length === 13) {
698+
endDate = (timestamp) ? moment.unix(timestamp / 1000) : moment();
699+
}
700+
else {
701+
endDate = (timestamp) ? moment.unix(timestamp) : moment();
702+
}
697703

698704
if (timezone) {
699705
endDate.tz(timezone);

package-lock.json

+9-264
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"ejs": "3.1.10",
5151
"errorhandler": "1.5.1",
5252
"express": "4.21.2",
53-
"express-rate-limit": "7.4.1",
53+
"express-rate-limit": "7.5.0",
5454
"express-session": "1.18.1",
5555
"form-data": "^4.0.0",
5656
"formidable": "2.1.1",
@@ -83,7 +83,7 @@
8383
"offline-geocoder": "git+https://github.com/Countly/offline-geocoder.git",
8484
"properties-parser": "0.6.0",
8585
"puppeteer": "^23.8.0",
86-
"sass": "1.81.0",
86+
"sass": "1.83.1",
8787
"sqlite3": "^5.1.7",
8888
"tslib": "^2.6.3",
8989
"uglify-js": "3.19.3",

0 commit comments

Comments
 (0)