Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: xlsx import and export #2829

Merged
merged 6 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: make xlsx tests timezone independent
Anty0 committed Jan 15, 2025

Verified

This commit was signed with the committer’s verified signature.
citizenmatt Matt Ellis
commit 6a2fd8b7423b6a1d6795193d17ee6dd026d9a8d5
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ class XlsxFileExporterTest {

@BeforeEach
fun setup() {
val now = Date(2025, Calendar.JANUARY, 10)
val now = Date(Date.UTC(2025-1900, Calendar.JANUARY, 10, 0, 0, 0))
Mockito.`when`(currentDateProvider.date).thenReturn(now)
}

@@ -51,7 +51,7 @@ class XlsxFileExporterTest {
|====================
|docProps/core.xml
|--------------------
|<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:created xsi:type="dcterms:W3CDTF">3925-01-09T23:00:00Z</dcterms:created><dc:creator>Apache POI</dc:creator></cp:coreProperties>
|<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:created xsi:type="dcterms:W3CDTF">2025-01-10T00:00:00Z</dcterms:created><dc:creator>Apache POI</dc:creator></cp:coreProperties>
|====================
|xl/sharedStrings.xml
|--------------------
@@ -129,7 +129,7 @@ class XlsxFileExporterTest {
|====================
|docProps/core.xml
|--------------------
|<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:created xsi:type="dcterms:W3CDTF">3925-01-09T23:00:00Z</dcterms:created><dc:creator>Apache POI</dc:creator></cp:coreProperties>
|<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:created xsi:type="dcterms:W3CDTF">2025-01-10T00:00:00Z</dcterms:created><dc:creator>Apache POI</dc:creator></cp:coreProperties>
|====================
|xl/sharedStrings.xml
|--------------------
@@ -182,7 +182,7 @@ class XlsxFileExporterTest {
|====================
|docProps/core.xml
|--------------------
|<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:created xsi:type="dcterms:W3CDTF">3925-01-09T23:00:00Z</dcterms:created><dc:creator>Apache POI</dc:creator></cp:coreProperties>
|<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:created xsi:type="dcterms:W3CDTF">2025-01-10T00:00:00Z</dcterms:created><dc:creator>Apache POI</dc:creator></cp:coreProperties>
|====================
|xl/sharedStrings.xml
|--------------------