Javascript – Generate timestamps with a specific time zone

I have to create one timestamp With a specific time zone, I already collect an hour in AM-PM format when I need it. For this I use the following instruction

new Date().toLocaleString("en-US", { timeZone: "America/New_York", hour: '2-digit', minute:'2-digit' });

But I also have to send at the same time but in format timestampThis is because I have to delete the data that is sent every 12 hours, but I have problems creating one timestamp With Date.now(), it creates it for me but with a different time zone.

How can I generate that? timestamp with a specific time zone?

google docs – script to get the time zone of the user

So my request is as follows. I am using Google Docs for a group of friends in a game and I want to add a script function to an image of a button that is given when the user clicks and grants access to the published sheet with editing rights. fills a preselected cell with the time zone gmt or UTC and not with the preselected settings for the spreadsheet settings. Is there such a script or method that uses it?

Bookings – Do I need a transit visa to stay in the Shengen Zone? I am Cameroonian and permanent resident in Canada

Cameroonian citizens generally do not need an airside transit visa to change trains in the Schengen area unless they have to go through the Immigration Service.

However, if your airside transit is in France, Greece, or Spain, these are countries do require Katunan transit visas from Cameroonian citizens. If your transit is in one of these countries, your permanent residence in Canada should still exempt you from applying for a visa.

Eye zone 20 for 20 after the exchange Forum promotion

Hello, my forum is very new. I would like to see some members and activities there.
I was wondering if we can help each other. My forum is called Eye Zone and is a general discussion forum with an entertainment touch.

Eye zone: www.eyezone.createaforum.com

(Please note, if I don't know the genre of your forum, please have an off-topic area where I can post.)

mysql – Migrate time zone timestamps

Hey guys and girls
I am trying to migrate this node library https://github.com/LocalSEOGuide/lighthouse-reporter from Postgres to MySQL and I get an error message error: ER_TRUNCATED_WRONG_VALUE: Incorrect datetime value: '2020-03-22T20:38:48.347Z' for column 'fetch_time' at row 1

I have isolated the query that is experiencing the error and run a little test:

     await db.query('drop table test');
     await db.query(`CREATE TABLE IF NOT EXISTS
                  test(
                    id SERIAL PRIMARY KEY,
                    fetch_time datetime
                  );
    `);

    const query_text = "INSERT INTO test SET ?"
    const query_params = { "fetch_time":"2020-03-22T20:38:48.347Z" }
    await db.query(query_text, query_params);

It seems the reporter is returning a timestamp with a Z at the end, but I can't figure out how to properly save it in MySQL. Suggestions would be very helpful!

• I also tried fetch_time as a timestamp

Thank you,

The upper zone affects my right and left zones

I am using Sharepoint 2013 sites as part of a work tool.
I can't imagine anything as it is handled in confidential material, but I will try to illustrate my problems.

Every site I get has this standard set of zones
Spread an upper zone, left and right, that looks like a 66/34 stock

Default setting

The problem is
Once I add a web part to the top zone, the relationship between the left and right zones changes
After adding a web part to the top zone

I do not want that :]
but as far as I can't say anything, I have a fixed width or height.
Why does adding something to the top bar change the default?

DNS zone in cents is not working

I installed bind and added the DNS zone but my domain is not working.

My configuration
/etc/named.conf

    options {
            listen-on port 53 { 127.0.0.1;193.33.111.185; };
            //listen-on-v6 port 53 { ::1; };
            directory       "/var/named";
            dump-file       "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            memstatistics-file "/var/named/data/named_mem_stats.txt";
            recursing-file  "/var/named/data/named.recursing";
            secroots-file   "/var/named/data/named.secroots";
            allow-query { localhost; };

            recursion yes;

            dnssec-enable yes;
            dnssec-validation yes;

            /* Path to ISC DLV key */
            bindkeys-file "/etc/named.root.key";

            managed-keys-directory "/var/named/dynamic";

            pid-file "/run/named/named.pid";
            session-keyfile "/run/named/session.key";
    };

    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };

channel named.log {
        file "/var/log/named.log" versions 10 size 20m;
        severity notice;
        print-category yes;
        print-severity yes;
        print-time yes;
    };

        category queries { named.log; };
        category default { named.log; };
        category config { named.log; };

    };



    zone "learn-linux.eu" IN {
             type master;
             file "/var/named/learn-linux.zone";
             allow-update { none; };
    };



    zone "." IN {
            type hint;
            file "named.ca";
    };

    include "/etc/named.rfc1912.zones";
    include "/etc/named.root.key";

/var/named/learn-linux.zone

$TTL 3h
@ IN  SOA     ns1.learn-linux.eu. root.learn-linux.eu. (
                                                4    ;Serial
                                                3H      ;Refresh
                                                15M     ;Retry
                                                1W      ;Expire
                                                1D      ;Minimum TTL
                                                )

;Name Server Information
@      IN  NS      ns1.learn-linux.eu.

;IP address of Name Server
ns1 IN  A       193.33.111.185

;A - Record HostName To IP Address

www     IN  A       193.33.111.185

Named check zone

(pawel@learn-linux ~)$ sudo named-checkzone learn-linux.eu /var/named/learn-linux.zone
zone learn-linux.eu/IN: loaded serial 4
OK

named-checkconf /etc/named.conf doesn't return anything

dig @ ns1.learn-linux.eu learn-linux.eu

  (pawel@learn-linux ~)$ dig @ns1.learn-linux.eu learn-linux.eu

    ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @ns1.learn-linux.eu learn-linux.eu
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5673
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;learn-linux.eu.            IN  A

    ;; AUTHORITY SECTION:
    learn-linux.eu.     10800   IN  SOA ns1.learn-linux.eu. root.learn-linux.eu. 4 10800 900 604800 86400

    ;; Query time: 0 msec
    ;; SERVER: 193.33.111.185#53(193.33.111.185)
    ;; WHEN: śro mar 11 14:25:36 CET 2020
    ;; MSG SIZE  rcvd: 88

On Debian 10 I have no problem with DNS configuration, on CentOS 7 I cannot configure this.

Forms – Zone for uploading multiple photos, e.g. before photos and after photos

I'm working on an app that allows users to fill out a report on the job they've received. These reports generally relate to physical assets. e.g. a aquarium.

In the report, the user must provide proof of the completion of the order by taking before and after photos. For this reason, I have considered having two photo upload options, one for before photos like in step 1 and after photos in step 4. See the image below for reference.

Enter the image description here

After the user publishes the report, all data is displayed in the report profile. Where I have different modules that display all the data. One of the modules is IMAGES, which shows all images that were uploaded before and after.

Enter the image description here

I need help in:

  1. What is the best way to get users Upload or do ** and to Pictures **
  2. How to do it better Display the before and after pictures.

systemd – Debian / Beaglebone clock changes to wrong date (possibly time zone related)

I have a three Beaglebone Green Wireless (BBGW), all have the same error. Something resets the system time. All of these boards have already been used
It also happens on a brand new Beaglebone Green.

I do all the tests with the picture Debian 9.9 IoT clean. I have cleaned up the internal memory and submarine and everything runs from an SD card. The only change made is to connect to WiFi to perform synchronization at runtime.

The right time in my TC is sex fev 21 12:55:52 -03 2020 and in UTC Fri Feb 21 15:56:06 UTC 2020, But it shows UTC as 12:56.

By default, Beaglebone is in UTC. I tested with a Beaglebone Green (not wireless) and it worked as expected. (Is there a possibility that it is a hardware or an internal EEPROM configuration?)

Run several timedatectl returns:

debian@beaglebone:~$ timedatectl 
      Local time: Fri 2020-02-21 12:53:54 UTC
  Universal time: Fri 2020-02-21 12:53:54 UTC
        RTC time: Fri 2020-02-21 12:53:53
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
debian@beaglebone:~$ timedatectl 
      Local time: Fri 2020-02-21 15:54:02 UTC
  Universal time: Fri 2020-02-21 15:54:02 UTC
        RTC time: Fri 2020-02-21 12:53:55
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no
debian@beaglebone:~$ timedatectl 
      Local time: Fri 2020-02-21 12:53:56 UTC
  Universal time: Fri 2020-02-21 12:53:56 UTC
        RTC time: Fri 2020-02-21 12:53:55
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

hwclock –debug output:

hwclock from util-linux 2.29.2
Using the /dev interface to the clock.
Last drift adjustment done at 1582299529 seconds after 1969
Last calibration done at 1582299529 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2020/02/21 12:56:50
Hw clock time : 2020/02/21 12:56:50 = 1582289810 seconds since 1969
Time since last adjustment is -9719 seconds
Calculated Hardware Clock drift is 0.000000 seconds
2020-02-21 12:56:49.029564+0000

Multiple clock calls:

debian@beaglebone:~$ sudo hwclock 
2020-02-21 13:00:52.113529+0000
debian@beaglebone:~$ sudo hwclock 
2020-02-21 10:00:46.983797+0000
debian@beaglebone:~$ sudo hwclock 
2020-02-21 10:00:47.934507+0000
debian@beaglebone:~$ sudo hwclock 
2020-02-21 13:01:00.852430+0000
debian@beaglebone:~$ sudo hwclock 
2020-02-21 13:01:01.721401+0000

Time zone file:

debian@beaglebone:~$ cat /etc/timezone 
Etc/UTC

I also tried changing the clock with –utc and –localtime.


More tests. I have deactivated ntp: sudo timedatectl set-ntp 0after I set the clock with sudo timedatectl set-time '2019-10-31 16:24'And then I activated ntp sync (timesyncd).

That is the result. The watch was stopped at the wrong time. During the setting 0 the watch was held 3 hours less.

debian@beaglebone:~/DebianDogePack/dogepack_installer/etc/guidedoge$ timedatectl 
      Local time: Fri 2020-02-21 17:27:14 UTC
  Universal time: Fri 2020-02-21 17:27:14 UTC
        RTC time: Thu 2019-10-31 16:25:39
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no
debian@beaglebone:~/DebianDogePack/dogepack_installer/etc/guidedoge$ timedatectl 
      Local time: Fri 2020-02-21 14:27:08 UTC
  Universal time: Fri 2020-02-21 14:27:08 UTC
        RTC time: Thu 2019-10-31 16:25:39
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
debian@beaglebone:~/DebianDogePack/dogepack_installer/etc/guidedoge$ timedatectl 
      Local time: Fri 2020-02-21 17:27:15 UTC
  Universal time: Fri 2020-02-21 17:27:15 UTC
        RTC time: Thu 2019-10-31 16:25:40
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no
debian@beaglebone:~/DebianDogePack/dogepack_installer/etc/guidedoge$ timedatectl 
      Local time: Fri 2020-02-21 14:27:10 UTC
  Universal time: Fri 2020-02-21 14:27:10 UTC
        RTC time: Thu 2019-10-31 16:25:41
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
debian@beaglebone:~/DebianDogePack/dogepack_installer/etc/guidedoge$ timedatectl 
      Local time: Fri 2020-02-21 14:27:11 UTC
  Universal time: Fri 2020-02-21 14:27:11 UTC
        RTC time: Thu 2019-10-31 16:25:42
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
debian@beaglebone:~/DebianDogePack/dogepack_installer/etc/guidedoge$ timedatectl 
      Local time: Fri 2020-02-21 17:27:19 UTC
  Universal time: Fri 2020-02-21 17:27:19 UTC
        RTC time: Thu 2019-10-31 16:25:43
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no

I tried to switch to my time zone. The local time hour error has even been increased (3 hour error + 3 hour time zone).