mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 01:41:36 +00:00
Handle csv_output_timestamp_column and output_timeformat
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
Merged GAM-Team version
|
||||
|
||||
6.62.01
|
||||
|
||||
Updated code so that when `gam.cfg` variables `csv_output_timestamp_column` and `output_timeformat` are both specified,
|
||||
the timestamp is output in the alternate output time format.
|
||||
|
||||
6.62.00
|
||||
|
||||
Added `output_dateformat` and `output_timeformat` variables to `gam.cfg` that provide alternate
|
||||
|
||||
@@ -8027,7 +8027,10 @@ class CSVPrintFile():
|
||||
|
||||
def SetTimestampColumn(self, timestampColumn):
|
||||
self.timestampColumn = timestampColumn
|
||||
self.todaysTime = ISOformatTimeStamp(todaysTime())
|
||||
if not GC.Values[GC.OUTPUT_TIMEFORMAT]:
|
||||
self.todaysTime = ISOformatTimeStamp(todaysTime())
|
||||
else:
|
||||
self.todaysTime = todaysTime().strftime(GC.Values[GC.OUTPUT_TIMEFORMAT])
|
||||
|
||||
def SetFormatJSON(self, formatJSON):
|
||||
self.formatJSON = formatJSON
|
||||
|
||||
Reference in New Issue
Block a user