mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #110] dcterms created and modified timestamps incorrect #89
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @patrick-rotsaert on GitHub (Jul 14, 2017).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/110
Originally assigned to: @jmcnamara on GitHub.
In core.c the static function _localtime_to_iso8601_date is used to convert
time_tto ISO8601 timestamp.The
time_t(epoch UTC) is first converted to local timestruct tmand then to a string, but with a Z-suffix. This is wrong. In order to use the Z-suffix, the time stamp must be UTC time, not local.To convert the
time_tto a UTC timestruct tm, thegmtimefunction could be used instead oflocaltime.I'd suggest to change the function to:
@jmcnamara commented on GitHub (Jul 24, 2017):
Hi,
Thanks. I had a similar issue in the Perl and Python versions as well but forgot to fix it in the C version.
I'll look into it.
Thanks,
John
@jmcnamara commented on GitHub (Jul 24, 2017):
Fixed in version 0.7.1.
Thanks for the report.