Browse Source

set timezone

Mike L 4 years ago
parent
commit
bdbe0b100a
2 changed files with 2 additions and 0 deletions
  1. 1 0
      dist/webshot.js
  2. 1 0
      src/webshot.ts

+ 1 - 0
dist/webshot.js

@@ -76,6 +76,7 @@ class Webshot extends CallableInstance {
                     bypassCSP: true,
                     deviceScaleFactor: zoomFactor,
                     locale: 'ja-JP',
+                    timezoneId: 'Asia/Tokyo',
                     userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36',
                 })
                     .then(page => {

+ 1 - 0
src/webshot.ts

@@ -89,6 +89,7 @@ extends CallableInstance<
         bypassCSP: true,
         deviceScaleFactor: zoomFactor,
         locale: 'ja-JP',
+        timezoneId: 'Asia/Tokyo',
         userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36',
       })
         .then(page => {