Hi Gerhard,
could you try with a conditional mapping, something along these lines:
if_then_else(isNull(DATETIME_FIELD),
Expression.NIL, FormatDateTimezone('yyyy-MM-dd''T''HH:mm:ss''Z''',
DATETIME_FIELD,
'UTC'))
Hope this helps.
On Wed, Sep 23, 2015 at 3:14 PM, Dünnebeil Gerhard <
[email protected]> wrote:
> Hello all,
>
>
>
> for some reasons I NEED to fiddle around with the formatting of a time
> stamp in an app-schema mapping.
>
>
>
> Everything works like a charm for the cases where the field in the
> database is populated.
>
> But when it comes to a NULL-Value I get the error message
> “formatDateTimezone: could not parse date: null”.
>
>
>
> With the background knowledge of what happens inside (delegation to java’s
> SimpleDateFormat) I am pretty sure I know what goes wrong here.
>
>
>
> Is there a workaround available for this? Or a better way to format the
> date?
>
> We already tried formatting it directly in the database (oracle,
> TO_CHAR-Function) but where not completely happy with that either.
>
>
>
> Best regards
>
> G. Dünnebeil
>
>
>
>
>
>
> *GERHARD DÜNNEBEIL *Secure Information Management
> Safety & Security Department
>
>
> *AIT Austrian Institute of Technology GmbH *Donau-City-Straße 1 | 1220
> Vienna | Austria
> T +43(0) 50550-3173 | M +43(0) 664 2351747 | F +43(0) 50550-4150
> [email protected] |
> *http://www.ait.ac.at <http://www.ait.ac.at/> *
> FN: 115980 i HG Wien | UID: ATU14703506
> http://www.ait.ac.at/Email-Disclaimer
>
>
>
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Best regards,
Stefano Costa
==
GeoServer Professional Services from the experts!
Visithttp://goo.gl/it488V for more information.
==
Dott. Stefano Costa
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users