From user-return-5374-archive-asf-public=cust-asf.ponee.io@manifoldcf.apache.org Fri Aug 10 17:23:54 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6D4E3180630 for ; Fri, 10 Aug 2018 17:23:53 +0200 (CEST) Received: (qmail 94552 invoked by uid 500); 10 Aug 2018 15:23:52 -0000 Mailing-List: contact user-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@manifoldcf.apache.org Delivered-To: mailing list user@manifoldcf.apache.org Received: (qmail 94542 invoked by uid 99); 10 Aug 2018 15:23:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2018 15:23:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0968DC0730 for ; Fri, 10 Aug 2018 15:23:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.089 X-Spam-Level: *** X-Spam-Status: No, score=3.089 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id aCNgwHkuB92Y for ; Fri, 10 Aug 2018 15:23:49 +0000 (UTC) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 45FFE5F24A for ; Fri, 10 Aug 2018 15:23:49 +0000 (UTC) Received: by mail-lf1-f49.google.com with SMTP id a4-v6so6865661lff.5 for ; Fri, 10 Aug 2018 08:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QvH0t+4YfcQgsSZnmdOQtSW0g4wFbiJsmrJ06Zf/RWQ=; b=QKqD4sDcwl0ZOQOtAhuz6bQ7L9fGNqlOOlvOH5hQGxXEgxYuT5A0iO7BA6KraTzX2K YzSag9ygJ3oJBULWztCAk2gZN6MXbiDgJY8vpp6CiXtUH7hyhy29vyEI9MHHxfhfLLJj zHyH3Lsm1DjWLQsY6xcIyNPmEURm3Te0SvjmbE5h9Dn7qNwWo6ZLXg361QrJ//TD7/Mb ZRpMHubPc6PkEf3m4V+NdmCi+ictqyvZaVNEnzUR4+A3W0hcFW2nugwkzQ1GMFF7Vpld FSPgaIfXRDrM3bYNkGskpmMHqdyBD5r7Dv2kf4z+Y+OQcX0MpAmliiK/sYotXuvHY5nS Qx8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QvH0t+4YfcQgsSZnmdOQtSW0g4wFbiJsmrJ06Zf/RWQ=; b=Z0RAF60Qy5b0IFjyXQCKAVbo0lFvd2Sh0e3pVypLDruIowz0WjZ/wxuiCSCeZ5aPom 51Kh4JZYQBrFTXHGO3ihbCNggdHqKOtWTANH0hJtcHemGoiBBXRLyeHAIbVIQsRnnw1h DU+/OWVDPoFOIgDr9z+s+4SXkcNObb5EZ5SAnwZmGixlNK1IO49LDd7Rpklgg98HSC/O vPu7lF2UI0eAXqQ+zvFu9W0+VNTYVpl0cjhtILkXPLmbOCubuv5tNFkx38TVgPuiwalz zIkh/1j7s3NwjhD9tNgfpABJODIgCdSECGnQp4EkwxnbZfRuxAf4OGVwbEHfcR/KAs8j PxkQ== X-Gm-Message-State: AOUpUlFVSNLY/B+yi3QkUv8ESEDVf5AE0ZHyro2oAA5A9+gmxKHryzFe GNL2Tge8T85Lm3W3c+cHDZSGcw18kzp1vqMOJ0PgzQ== X-Google-Smtp-Source: AA+uWPwchdx/Fc+Bd8nTvlW7qdJ8jE2DiXxx03m3eC1eg6xoxLoZz0IbMRukXnoFqREHOp7q51BbeKVqlJd5KbdgwT4= X-Received: by 2002:a19:d942:: with SMTP id q63-v6mr4608600lfg.39.1533914621534; Fri, 10 Aug 2018 08:23:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Karl Wright Date: Fri, 10 Aug 2018 11:23:29 -0400 Message-ID: Subject: Re: Different time in Simple History Report To: user@manifoldcf.apache.org Content-Type: multipart/alternative; boundary="00000000000021e5fa057316543d" --00000000000021e5fa057316543d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Try it now. Karl On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario wrote: > Yes > > sudo ant make-core-deps > > Buildfile: /home/administrator/mcfsorce/trunk/build.xml > > Trying to override old definition of task javac > > > > BUILD FAILED > > /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class > de.thetaphi.forbiddenapis.ant.AntTask cannot be found > > using the classloader AntClassLoader[] > > > > Total time: 0 seconds > > administrator@sengvivv01:~/mcfsorce/trunk$ > > > > But the downloaded trunk directory is very small, instead the last trunk > was bigger: > > administrator@sengvivv01:~/mcfsorce$ du -sh tr* > > 121M trunk > > 1.8G trunk_19062018 > > > > > > > > > > *Da:* Karl Wright > *Inviato:* venerd=C3=AC 10 agosto 2018 16:47 > *A:* user@manifoldcf.apache.org > *Oggetto:* Re: Different time in Simple History Report > > > > Did you first do: > > > > ant make-core-deps > > > > ? > > Karl > > > > > > On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario > wrote: > > Thanks Karl. > > I tried to compile the trunk version but I obtian: > > Buildfile: /home/administrator/mcfsorce/trunk/build.xml > > Trying to override old definition of task javac > > > > BUILD FAILED > > /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class > de.thetaphi.forbiddenapis.ant.AntTask cannot be found > > using the classloader AntClassLoader[] > > > > > > > > > > > > *Da:* Karl Wright > *Inviato:* venerd=C3=AC 10 agosto 2018 10:53 > *A:* user@manifoldcf.apache.org > *Oggetto:* Re: Different time in Simple History Report > > > > I've committed a change to trunk which will restore the pre-2016 behavior= . > > > > Karl > > > > On Fri, Aug 10, 2018 at 3:40 AM Karl Wright wrote: > > The code that formats the time is here: > > > > >>>>>> > > String startTimeString =3D > org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.g= etValue("starttime"))); > > <<<<<< > > > > This explicitly uses UTC as the timezone: > > >>>>>> > > /** Format a long as an understandable date. > > *@param time is the long. > > *@return the date, as a human-readable string. This date will be in > local time. > > */ > > public static String formatTime(long time) > > { > > Calendar c =3D new GregorianCalendar(TimeZone.getTimeZone("UTC"), > Locale.ROOT); > > c.setTimeInMillis(time); > > // We want to format this string in a compact way: > > // mm-dd-yyyy hh:mm:ss.mmm > > StringBuilder returnString =3D new StringBuilder(); > > writechars(returnString,c.get(Calendar.MONTH)+1,2); > > returnString.append("-"); > > writechars(returnString,c.get(Calendar.DAY_OF_MONTH),2); > > returnString.append("-"); > > writechars(returnString,c.get(Calendar.YEAR),4); > > returnString.append(" "); > > writechars(returnString,c.get(Calendar.HOUR_OF_DAY),2); > > returnString.append(":"); > > writechars(returnString,c.get(Calendar.MINUTE),2); > > returnString.append(":"); > > writechars(returnString,c.get(Calendar.SECOND),2); > > returnString.append("."); > > writechars(returnString,c.get(Calendar.MILLISECOND),3); > > return returnString.toString(); > > } > > <<<<<< > > This was last changed: > > >>>>>> > > 1756230 kwright Calendar c =3D new > GregorianCalendar(TimeZone.getTimeZone("UTC"), Locale.ROOT); > > <<<<<< > > > > The reason for the change: > > >>>>>> > > ------------------------------------------------------------------------ > > r1756230 | kwright | 2016-08-12 18:20:00 -0400 (Fri, 12 Aug 2016) | 1 lin= e > > > > Fix for CONNECTORS-1332. Committed on behalf of Furkan KAMACI. > > <<<<<< > > CONNECTORS-1332 is about calling forbidden APIS: > > > > >>>>>> > > We should avoid forbidden calls > and > check for it in the ant build. > > <<<<<< > > > > The actual change was: > > >>>>>> > > C:\wip\mcf\trunk\framework\ui-core\src\main\java\org\apache\manifoldcf\ui= \util>svn > diff -c 1756230 > > Index: Formatter.java > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- Formatter.java (revision 1756229) > > +++ Formatter.java (revision 1756230) > > @@ -32,7 +32,7 @@ > > */ > > public static String formatTime(long time) > > { > > - Calendar c =3D new GregorianCalendar(); > > + Calendar c =3D new GregorianCalendar(TimeZone.getTimeZone("UTC"), > Locale.ROOT); > > c.setTimeInMillis(time); > > // We want to format this string in a compact way: > > // mm-dd-yyyy hh:mm:ss.mmm > > <<<<<< > > > > > > As you see, formerly the timezone was local time. The change required an > explicit timezone in order to pass the forbidden APIs test, and UTC was > used. > > I am happy to try to change this since it's been this way only since 2016= , > if I can find a way that will not break forbiddenAPIs. > > > > Karl > > > > > > On Fri, Aug 10, 2018 at 2:42 AM Bisonti Mario > wrote: > > Hallo Karl. > > My server timezone is set as the browser timezone (europe/Rome) as you ca= n > see, but the list is two hour less my time zone. > > So, it seems that the list uses the =E2=80=9Cuniversal time=E2=80=9D inst= ead of time zone > > > > administrator@sengvivv01:~$ timedatectl > > Local time: Fri 2018-08-10 08:39:28 CEST > > Universal time: Fri 2018-08-10 06:39:28 UTC > > RTC time: Fri 2018-08-10 06:39:28 > > Time zone: Europe/Rome (CEST, +0200) > > System clock synchronized: yes > > systemd-timesyncd.service active: yes > > RTC in local TZ: no > > > > > > What could I do? > > Thanks a lot > > > > > > > > *Da:* Karl Wright > *Inviato:* gioved=C3=AC 9 agosto 2018 21:36 > *A:* user@manifoldcf.apache.org > *Oggetto:* Re: Different time in Simple History Report > > > > Hi Mario. > > The pulldown allows you to select times based on the current (browser) > time zone. > > The display is in *server* timezone. That accounts for the difference. > > > > Karl > > > > > > On Thu, Aug 9, 2018 at 10:23 AM Bisonti Mario > wrote: > > Hallo > > I see a difference from the start time in =E2=80=9CSimple History Report= =E2=80=9D > > > > It seems late of 2 hours. > > > > Have I to set timezone for this report? > > > > Thanks a lot > > See the attachment > > > > > > --00000000000021e5fa057316543d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Try it now.

Karl


On Fri, Aug 10, 2018 at= 10:57 AM Bisonti Mario <Mari= o.Bisonti@vimar.com> wrote:

Yes

sudo ant make-core-deps

Buildfile: /home/administrator/mcfsorce/trunk/= build.xml

Trying to override old definition of task java= c

=C2=A0

BUILD FAILED

/home/administrator/mcfsorce/trunk/build.xml:2= 929: taskdef class de.thetaphi.forbiddenapis.ant.AntTask cannot be found=

using the classloader AntClassLoader[]<= u>

=C2=A0

Total time: 0 seconds

administrator@sengvivv01:~/mcfsorce/trunk$<= /u>

=C2=A0

But the downloaded trunk directory is very sma= ll, instead the last trunk was bigger:

administrator@sengvivv01:~/mcfsorce$ du -sh tr= *

121M=C2=A0=C2=A0=C2=A0 trunk

1.8G=C2=A0=C2=A0=C2=A0 trunk_19062018

=C2=A0

=C2=A0

=C2=A0

=C2=A0

Da: Karl Wright <daddywri@gmail.com>
Inviato: venerd=C3=AC 10 agosto 2018 16:47
A: u= ser@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

=C2=A0

Did you first do:

=C2=A0

ant make-core-deps

=C2=A0

?

Karl

=C2=A0

=C2=A0

On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario <Mario.Bisonti@vi= mar.com> wrote:

Thanks Karl.

I tried to compile the trunk version but I obtian:
Buildfile: /home/administrator/mcfsorce/trunk/build.xml

Trying to override old definition of task javac

=C2=A0

BUILD FAILED

/home/administrator/mcfsorce/trunk/build.xml:2929: t= askdef class de.thetaphi.forbiddenapis.ant.AntTask cannot be found

using the classloader AntClassLoader[]=

=C2=A0

=C2=A0

=C2=A0

=C2=A0

=C2=A0

Da: Karl Wright <daddywri@gmail.com>
Inviato: venerd=C3=AC 10 agosto 2018 10:53
A: u= ser@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

=C2=A0

I've committed a change to trunk which will rest= ore the pre-2016 behavior.

=C2=A0

Karl

=C2=A0

On Fri, Aug 10, 2018 at 3:40 AM Karl Wright <daddywri@gmail.com&= gt; wrote:

The code that formats the time is here:

=C2=A0

>>>>>>=C2=A0

=C2=A0 =C2=A0 String startTimeString =3D org.apache.= manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("= ;starttime")));

<<<<<<=C2=A0

=C2=A0

This explicitly uses UTC as the timezone:

>>>>>>

=C2=A0 /** Format a long as an understandable date.<= u>

=C2=A0 *@param time is the long.

=C2=A0 *@return the date, as a human-readable string= .=C2=A0 This date will be in local time.

=C2=A0 */

=C2=A0 public static String formatTime(long time)=

=C2=A0 {

=C2=A0 =C2=A0 Calendar c =3D new GregorianCalendar(T= imeZone.getTimeZone("UTC"), Locale.ROOT);

=C2=A0 =C2=A0 c.setTimeInMillis(time);=

=C2=A0 =C2=A0 // We want to format this string in a = compact way:

=C2=A0 =C2=A0 // mm-dd-yyyy hh:mm:ss.mmm

=C2=A0 =C2=A0 StringBuilder returnString =3D new Str= ingBuilder();

=C2=A0 =C2=A0 writechars(returnString,c.get(Calendar= .MONTH)+1,2);

=C2=A0 =C2=A0 returnString.append("-");=

=C2=A0 =C2=A0 writechars(returnString,c.get(Calendar= .DAY_OF_MONTH),2);

=C2=A0 =C2=A0 returnString.append("-");=

=C2=A0 =C2=A0 writechars(returnString,c.get(Calendar= .YEAR),4);

=C2=A0 =C2=A0 returnString.append(" ");=

=C2=A0 =C2=A0 writechars(returnString,c.get(Calendar= .HOUR_OF_DAY),2);

=C2=A0 =C2=A0 returnString.append(":");=

=C2=A0 =C2=A0 writechars(returnString,c.get(Calendar= .MINUTE),2);

=C2=A0 =C2=A0 returnString.append(":");=

=C2=A0 =C2=A0 writechars(returnString,c.get(Calendar= .SECOND),2);

=C2=A0 =C2=A0 returnString.append(".");=

=C2=A0 =C2=A0 writechars(returnString,c.get(Calendar= .MILLISECOND),3);

=C2=A0 =C2=A0 return returnString.toString();=

=C2=A0 }

<<<<<<

This was last changed:

>>>>>>

1756230=C2=A0 =C2=A0 kwright=C2=A0 =C2=A0 =C2=A0Cale= ndar c =3D new GregorianCalendar(TimeZone.getTimeZone("UTC"), Loc= ale.ROOT);

<<<<<<=C2=A0

=C2=A0

The reason for the change:

>>>>>>

----------------------------------------------------= --------------------

r1756230 | kwright | 2016-08-12 18:20:00 -0400 (Fri,= 12 Aug 2016) | 1 line

=C2=A0

Fix for CONNECTORS-1332.=C2=A0 Committed on behalf o= f Furkan KAMACI.

<<<<<&= lt;=C2=A0

CONNECTORS-1332 is about calling forbidden APIS:<= /u>

=C2=A0

>>>>>>=C2=A0

We should avoid=C2=A0fo= rbidden calls=C2=A0and check for it in the ant build.=C2=A0

<<<<<<=C2=A0

=C2=A0

The actual change was= :

>>>>>>=C2=A0

C:\wip\mcf\trunk\framework\ui-core\src\main\java\org= \apache\manifoldcf\ui\util>svn diff -c 1756230

Index: Formatter.java

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

--- Formatter.java=C2=A0 =C2=A0 =C2=A0 (revision 175= 6229)

+++ Formatter.java=C2=A0 =C2=A0 =C2=A0 (revision 175= 6230)

@@ -32,7 +32,7 @@

=C2=A0 =C2=A0*/

=C2=A0 =C2=A0public static String formatTime(long ti= me)

=C2=A0 =C2=A0{

-=C2=A0 =C2=A0 Calendar c =3D new GregorianCalendar(= );

+=C2=A0 =C2=A0 Calendar c =3D new GregorianCalendar(= TimeZone.getTimeZone("UTC"), Locale.ROOT);

=C2=A0 =C2=A0 =C2=A0c.setTimeInMillis(time);<= u>

=C2=A0 =C2=A0 =C2=A0// We want to format this string= in a compact way:

=C2=A0 =C2=A0 =C2=A0// mm-dd-yyyy hh:mm:ss.mmm

<<<<<<=C2=A0

=C2=A0

=C2=A0

As you see, formerly the timezone was local time.=C2= =A0 The change required an explicit timezone in order to pass the forbidden= APIs test, and UTC was used.

I am happy to try to change this since it's been this way only since 20= 16, if I can find a way that will not break forbiddenAPIs.

=C2=A0

Karl

=C2=A0

=C2=A0

On Fri, Aug 10, 2018 at 2:42 AM Bisonti Mario <Mario.Bisonti@vi= mar.com> wrote:

Hallo Karl.

My server timezone is set as the browser timezone (e= urope/Rome) as you can see, but the list is two hour less my time zone.<= /u>

So, it seems that the list uses the =E2=80=9Cunivers= al time=E2=80=9D instead of time zone

=C2=A0

administrator@sengvivv01:~$ timedatectl

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= Local time: Fri 2018-08-10 08:39:28 CEST

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Universal time: Fri 201= 8-08-10 06:39:28 UTC

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 RTC time: Fri 2018-08-10 06:39:28

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 Time zone: Europe/Rome (CEST, +0200)

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 System clock sy= nchronized: yes

systemd-timesyncd.service active: yes<= /p>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RTC in local TZ: no=

=C2=A0

=C2=A0

What could I do?

Thanks a lot

=C2=A0

=C2=A0

=C2=A0

Da: Karl Wright <daddywri@gmail.com>
Inviato: gioved=C3=AC 9 agosto 2018 21:36
A: u= ser@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

=C2=A0

Hi Mario.

The pulldown allows you to select times based on the current (browser) time= zone.

The display is in *server* timezone.=C2=A0 That accounts for the difference= .

=C2=A0

Karl

=C2=A0

=C2=A0

On Thu, Aug 9, 2018 at 10:23 AM Bisonti Mario <Mario.Bisonti@vi= mar.com> wrote:

Hallo

I see a difference from the start time in =E2=80=9CS= imple History Report=E2=80=9D

=C2=A0

It seems late of 2 hours.

=C2=A0

Have I to set timezone for this report?

=C2=A0

Thanks a lot

See the attachment

=C2=A0

=C2=A0

--00000000000021e5fa057316543d--