change to unixtimestamp
This commit is contained in:
		@@ -659,7 +659,8 @@ sub WriteReadings {
 | 
			
		||||
                    $decode_json->{abilities}[$abilities]{name} . '-'
 | 
			
		||||
                      . $propertie->{name} 
 | 
			
		||||
                      . '_timestamp',
 | 
			
		||||
                    RigReadingsValue( $hash, $propertie->{timestamp} )
 | 
			
		||||
                      Time::Piece->strptime(RigReadingsValue( $hash, $propertie->{timestamp} ), "%Y-%m-%d %H:%M:%S")->strftime('%s')
 | 
			
		||||
                      
 | 
			
		||||
                  )
 | 
			
		||||
                  if (
 | 
			
		||||
                    defined( $propertie->{value} ) 
 | 
			
		||||
@@ -668,7 +669,6 @@ sub WriteReadings {
 | 
			
		||||
                  )
 | 
			
		||||
                );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                readingsBulkUpdateIfChanged(
 | 
			
		||||
                    $hash,
 | 
			
		||||
                    $decode_json->{abilities}[$abilities]{name} . '-'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user