Timezone issue with TTF parser?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Timezone issue with TTF parser?

kkrugler
Hi all,

I just did an svn up from trunk, and  mvn clean install is failing with:

Failed tests:   testTTFParsing(org.apache.tika.parser.font.FontParsersTest): expected:<1904-01-01T0[0]:00:00Z> but was:<1904-01-01T0[8]:00:00Z>

Which is this line in the test:

        assertEquals("1904-01-01T00:00:00Z",   metadata.get(Metadata.CREATION_DATE));

In the TrueTypeParser I see:

        metadata.set(TikaCoreProperties.CREATED, font.getHeader().getCreated());

Which seems odd, as other parsers seem to be setting CREATED to a Date object, but here it's being set to a Calendar.

However changing that to .getCreated().getTime() doesn't solve the problem.

-- Ken

--------------------------
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
custom big data solutions & training
Hadoop, Cascading, Cassandra & Solr





Reply | Threaded
Open this post in threaded view
|

Re: Timezone issue with TTF parser?

Nick Burch-2
On Mon, 9 Jun 2014, Ken Krugler wrote:
> I just did an svn up from trunk, and  mvn clean install is failing with:
>
> Failed tests:   testTTFParsing(org.apache.tika.parser.font.FontParsersTest): expected:<1904-01-01T0[0]:00:00Z> but was:<1904-01-01T0[8]:00:00Z>

See TIKA-1325. Pesky to discover it's still broken though, I thought that
fix would've worked :(

Nick
Reply | Threaded
Open this post in threaded view
|

Re: Timezone issue with TTF parser?

Tyler Palsulich
+1 Having the same issue. That test passed for me before the update. I'm on
Pacific time, for what it's worth.

Tyler
Reply | Threaded
Open this post in threaded view
|

Re: Timezone issue with TTF parser?

lewis john mcgibbney
In reply to this post by kkrugler
+1
Can reproduce

On Mon, Jun 9, 2014 at 11:41 AM, <[hidden email]> wrote:

>
> Subject: Re: Timezone issue with TTF parser?
> +1 Having the same issue. That test passed for me before the update. I'm on
> Pacific time, for what it's worth.
>
>
Reply | Threaded
Open this post in threaded view
|

RE: Timezone issue with TTF parser?

Allison, Timothy B.
In reply to this post by Nick Burch-2
Ok, should work as of r1601444.  Thank you, Nick, for working through this issue with me.

-----Original Message-----
From: Nick Burch [mailto:[hidden email]]
Sent: Monday, June 09, 2014 10:45 AM
To: [hidden email]
Subject: Re: Timezone issue with TTF parser?

On Mon, 9 Jun 2014, Ken Krugler wrote:
> I just did an svn up from trunk, and  mvn clean install is failing with:
>
> Failed tests:   testTTFParsing(org.apache.tika.parser.font.FontParsersTest): expected:<1904-01-01T0[0]:00:00Z> but was:<1904-01-01T0[8]:00:00Z>

See TIKA-1325. Pesky to discover it's still broken though, I thought that
fix would've worked :(

Nick
Reply | Threaded
Open this post in threaded view
|

Re: Timezone issue with TTF parser?

Tyler Palsulich
> Ok, should work as of r1601444.
Yep! All passing now. Thanks.