Open JSON log & type the following to convert all timestamps:
%s/"timestamp":\s*\zs\(\d\+\)\ze\./\=(str2nr(submatch(1)) - (7 * 60 * 60))/g
%s/"timestamp":\s*\zs\(\d\+\)\ze\./\=(str2nr(submatch(1)) + (8 * 60 * 60))/g
Open JSON log & type the following to convert all timestamps:
%s/"timestamp":\s*\zs\(\d\+\)\ze\./\=(str2nr(submatch(1)) - (7 * 60 * 60))/g
%s/"timestamp":\s*\zs\(\d\+\)\ze\./\=(str2nr(submatch(1)) + (8 * 60 * 60))/g
import sys | |
from time import sleep | |
from selenium import webdriver | |
from selenium.common.exceptions import TimeoutException | |
from selenium.common.exceptions import WebDriverException | |
from eliot import start_action, to_file, log_call | |
# from selenium.webdriver.common.keys import Keys | |
# from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
# from selenium.webdriver.common.by import By | |
# from selenium.webdriver.support import expected_conditions as EC |