Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Mark Shute / Mark Shute (Mark Shute)
Created: 01/19/2016
Components: Document Management, Office Integration
Versions: 2016,11.0,10.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: CF11_Final / CF2018U5
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win 2003 Server
Vote Count: 2
Problem Description: When I convert a spreadsheet into a query object using <cfspreadsheet action="read" ...> and then output the query values, all dates prior to Jan 1, 1930 show the year as 20xx. For example, if the spreadsheet contains "1/19/1917", the output from the query (using dateFormat medium) would be "Jan 19, 2017". In addition, any dates after Dec 31, 2029 show the year as 19xx. For example, if the spreadsheet contains "1/19/2045", the output from the query (using dateFormat medium) would be "Jan 19, 1945". This may be due to the cfspreadsheet tag converting all years to 2-digit values. If you cfdump the query object immediately after creating it with cfspreadsheet, you will see all of the dates with 2-digit years. Using the previous examples, "1/19/17" and "1/19/45" respectively.
Steps to Reproduce: Create a spreadsheet. In one column list a series of dates. Include some dates prior to Jan 1, 1930 and after Jan 1, 2030. Use cfSpreadsheet with action "read" to convert the spreadsheet to a query object. Use cfoutput to output the query data using dateFormat() and a mask that includes a 4-digit year
Actual Result: Any dates prior to 1930 will be changed to 20xx. Any dates after 2030 will be changed to 19xx
Expected Result: The actual 4-digit years entered into the spreadsheet
Any Workarounds: none known.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4108544
External Customer Info:
External Company:
External Customer Name: Mark Shute
External Customer Email:
External Test Config: My Hardware and Environment details: CF11 running on Windows 2003
Attachments:
- January 20, 2016 00:00:00: 1_CF_2-digit_year_issue.png
Comments: