Commit 47515e9 1 parent cd5e2b6 commit 47515e9 Copy full SHA for 47515e9
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ permissions:
11
11
12
12
env :
13
13
WORKING_DIRECTORY : bot
14
+
14
15
defaults :
15
16
run :
16
17
working-directory : ./bot
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ async function check_store() {
20
20
const games = res . data . data . Catalog . searchStore . elements
21
21
var game_list = [ ]
22
22
games . forEach ( ( game ) => {
23
- console . log ( game )
24
23
var skip = true
25
24
const title = game . title
26
25
console . log ( game . title )
@@ -50,11 +49,15 @@ async function check_store() {
50
49
// 12 Days of Christmas it seems to be using this check
51
50
if ( game . promotions . promotionalOffers [ 0 ] != null ) {
52
51
end_date = game . promotions . promotionalOffers [ 0 ] . promotionalOffers [ 0 ] . endDate
52
+ date = new Date ( Date . parse ( end_date ) )
53
+ end_date = date . toLocaleString ( 'en-us' )
53
54
skip = false
54
55
}
55
56
if ( game . promotions . upcomingPromotionalOffers [ 0 ] != null ) {
56
57
if ( game . promotions . upcomingPromotionalOffers [ 0 ] . promotionalOffers [ 0 ] != null ) {
57
58
start_date = game . promotions . upcomingPromotionalOffers [ 0 ] . promotionalOffers [ 0 ] . startDate
59
+ date = new Date ( Date . parse ( start_date ) )
60
+ start_date = date . toLocaleString ( 'en-us' )
58
61
skip = false
59
62
}
60
63
}
You can’t perform that action at this time.
0 commit comments