Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Datetime format with elog client, posted by Alan Grant on Wed Oct 26 16:39:38 2016 
    icon2.gif   Re: Datetime format with elog client, posted by Alan Grant on Wed Oct 26 21:41:42 2016 
       icon2.gif   Re: Datetime format with elog client, posted by David Pilgram on Wed Oct 26 22:15:46 2016 
          icon2.gif   Re: Datetime format with elog client, posted by Alan Grant on Thu Oct 27 04:16:10 2016 
       icon2.gif   Re: Datetime format with elog client, posted by Andreas Luedeke on Thu Oct 27 11:18:17 2016 
Message ID: 68446     Entry time: Thu Oct 27 04:16:10 2016     In reply to: 68445
Icon: Reply  Author: Alan Grant  Author Email: agrant@winnipeg.ca 
Category: Question  OS: Windows  ELOG Version: 3.1.2 
Subject: Re: Datetime format with elog client 

I really appreciate your reply David.

There's only one Datetime defined field that I'm working with so I'm not sure what you mean, if you don't mind elaborating? It sounds interesting.

The only thing I gather right now from what you're saying is that there's essentially two locations where a field can be defined - in the Config file, or via the format of the data itself in the client command - but I could be wrong. 

David Pilgram wrote:

Hi Alan,

I have no idea if this helps but the Date and Time formats in the config file internally interconnect, as I discovered in trying to define them separately.  Define one, and the other is defined.

I only mention this as I spent some hours trying to sort out the issue, only to learn it was a "feature" that Stefan didn't want to correct as it may affect too many others.  I can understand that, and made a different solution to what I wanted to do.

Alan Grant wrote:

UPDATE:

As I continue to test and troubleshoot this problem I noticed something peculiar: the Datetime defined field that the client is rejecting when I attempt a record insert is listed as a Required attribute. However, when I just remove it from the Required list the record including the epoch time is inserted without any problems.

I am now unsure if my configuration is deficient somewhere, vs a problem with the client program code.

Alan Grant wrote:

What is the input format expected by the elog client for a required Datetime defined field when inserting a record? (Eg: October 26, 2016 = ? in the field's data parameter).

I have read some prior posts on this and the indication is that the input needs to use epoch time, however even when I enter 1477493161 or 0 the client still flags the variable data as missing. If this is in fact the format I shoud be using then I can provide a sample input and output message to illustrate my problem.

 

 

 

 

ELOG V3.1.5-3fb85fa6