You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2021/01/12 12:51:00 UTC

[jira] [Resolved] (MINIFICPP-1398) EL date functions are not available on Windows

     [ https://issues.apache.org/jira/browse/MINIFICPP-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marton Szasz resolved MINIFICPP-1398.
-------------------------------------
    Resolution: Fixed

> EL date functions are not available on Windows
> ----------------------------------------------
>
>                 Key: MINIFICPP-1398
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1398
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Marton Szasz
>            Assignee: Marton Szasz
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> in Expression.h:
> {{#define EXPRESSION_LANGUAGE_USE_DATE}}
> {{// Disable date in EL for incompatible compilers}}
>  {{#if \_\_GNUC\_\_ < 5}}
>  {{#undef EXPRESSION_LANGUAGE_USE_DATE}}
>  {{#endif}}
> I assume \_\_GNUC\_\_ is evaluated as 0 on Windows and that's the cause.
> update: due to problems with the date and timezone libraries on Windows, I'm going to add a fallback based on strftime for now.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)