From 3b6686b29d7b5b3c6d98c8e20e17f2afcf21215a Mon Sep 17 00:00:00 2001 From: MARTIN Denis Date: Mon, 26 Feb 2018 09:34:39 +0100 Subject: [PATCH 1/2] Update LICENSE --- LICENSE | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 2d7b455..449b526 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,9 @@ The MIT License (MIT) -Copyright (c) 2014 René BIGOT +Copyright (c) 2014-2016 René BIGOT. +Copyright (c) 2015 Fabian Pahl (Cocoa pods integration). +Copyright (c) 2016 Sam Hatchett (Mac port). +Copyright (c) 2017 Denis Martin-Bruillot. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 94e0740b8783f782d4fe8b478f099f3369f0ecee Mon Sep 17 00:00:00 2001 From: Ninakadin Date: Fri, 4 May 2018 22:36:58 +0200 Subject: [PATCH 2/2] Update BRANumberFormat.m If you have a date cell with time like 7:30:00 am and request the StringValue of the cell, you receive a time of 7:29:59 am. So ceil the seconds in line 506. --- XlsxReaderWriter/BRANumberFormat.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XlsxReaderWriter/BRANumberFormat.m b/XlsxReaderWriter/BRANumberFormat.m index 49ca792..1c864bf 100644 --- a/XlsxReaderWriter/BRANumberFormat.m +++ b/XlsxReaderWriter/BRANumberFormat.m @@ -503,7 +503,7 @@ - (NSAttributedString *)formatNumber:(CGFloat)number { if (time) { //Here time is converted to seconds //some loss of precision will occur - seconds = (NSInteger)(time * 86400); + seconds = (NSInteger)((time * 86400) + 0.5); // Ceil, otherwise you loose a second sometimes } NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];