Re: sling mocks, null pointer exception when checking the resource type of the root node

2015-03-30 Thread Santiago García Pimentel
On 27/03/15 15:29, Robert Munteanu wrote: PR looks good to me, I added a comment related to a minor issue. Thanks Robert, I've changed the root type from jcr:root to rep:root. Greetings. -- *Santiago García Pimentel* | Software Engineer Netcentric Ibérica SL Av. Diagonal 123 -8ª

sling mocks, null pointer exception when checking the resource type of the root node

2015-03-24 Thread Santiago García Pimentel
because if there is no resourceType, it will fallback to the primaryType, but since there is no primary type for the root node, a NPE is generated. I already suggested a small fix for this in https://github.com/apache/sling/pull/72 . Could this be integrated? Thank you -- *Santiago García

Re: storing dates with timezones in Sling

2015-01-19 Thread Santiago García Pimentel
ne is provided it should be kept. Do you agree? The change would not be very complex, we can parse the offset from the date string and set it to the DateFormatter before parsing the date. WDYT' -- *Santiago García Pimentel* | Software Engineer Netcentric Ibérica SL Av. Diagonal 123 -8ª 08005

Re: storing dates with timezones in Sling

2015-01-15 Thread Santiago García Pimentel
this? If no, how could this be changed without breaking backward compatibility? Greetings -- *Santiago García Pimentel* | Software Engineer Netcentric Ibérica SL Av. Diagonal 123 -8ª 08005 Barcelona España Skype: santiago.garciapimentel santiago.pimen...@netcentric.biz | www.netcentric.es

Re: storing dates with timezones in Sling

2015-01-15 Thread Santiago García Pimentel
On 15/01/15 09:47, Ian Boston wrote: Hi, On 15 January 2015 at 08:13, Davide Giannella wrote: On 14/01/2015 14:50, Bertrand Delacretaz wrote: On Wed, Jan 14, 2015 at 3:40 PM, Santiago García Pimentel ... I would actually like to keep using this behavior since it simplifies things for me

Re: storing dates with timezones in Sling

2015-01-14 Thread Santiago García Pimentel
Hi Robert, On 14/01/15 15:23, Robert Munteanu wrote: Hi, On Wed, Jan 14, 2015 at 3:49 PM, Santiago García Pimentel wrote: TL;DR: Using the ISO8601 format for dates keeps the original timezone instead of shifting it to the local timezone, unlike the rest of the supported formats. On 13/01/15

Re: storing dates with timezones in Sling

2015-01-14 Thread Santiago García Pimentel
e (no matter in which timezone the date is given initially) when it comes to date/time comparisons/calculations. What do you want to do with the timezone information? Do you need that for printing date information i.e. for converting it to a string (e.g. with the SimpleDateFormat)? Konrad Am 12.01.201

storing dates with timezones in Sling

2015-01-12 Thread Santiago García Pimentel
, how could this be changed without breaking backward compatibility? Greetings -- *Santiago García Pimentel* | Software Engineer Netcentric Ibérica SL Av. Diagonal 123 -8ª 08005 Barcelona España Skype: santiago.garciapimentel santiago.pimen...@netcentric.biz | www.netcentric.es

Allow the resource-path injector to inject multiple paths

2014-12-02 Thread Santiago García Pimentel
make it better? Greetings. -- *Santiago García Pimentel* | Software Engineer Netcentric Ibérica SL Av. Diagonal 123 -8ª 08005 Barcelona España Skype: santiago.garciapimentel santiago.pimen...@netcentric.biz | www.netcentric.es