Skip to content

2.1.0版本,从excel导入数据,不识别日期格式 #68

Description

@zhujinhu21

Describe the bug
A clear and concise description of what the bug is.
excel中 列是日期格式,导入报错,提示“值 43914 无效,请填写正确的日期时间格式!”
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
微信截图_20200325165247

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Activity

  1. xin-lai commented on Mar 25, 2020

    @xin-lai
    Collaborator

    问题已收到,正在处理。目前发现线上的单元测试是OK的,但是本地单元测试确实没有通过,原因已经找到,我们会尽快处理并发布Beta版。

  2. zhujinhu21 commented on Mar 25, 2020

    @zhujinhu21
    Author

    netcore2.2的项目不能使用 Magicodes.IE.Excel 2.1.0以上的版本。nuget添加失败

  3. xin-lai commented on Mar 26, 2020

    @xin-lai
    Collaborator

    试试2.2 Beta版的包

  4. xin-lai commented on Mar 26, 2020

    @xin-lai
    Collaborator

    刚试过2.1.4版本没有问题。

  5. zhujinhu21 commented on Mar 26, 2020

    @zhujinhu21
    Author

    netcore2.2 不能使用2.1.4以上的包,我直接使用下载的源码

  6. xin-lai commented on Mar 26, 2020

    @xin-lai
    Collaborator

    是Beta版的不支持么?.net core 2.2我试过用2.1.4可以啊。

  7. zhujinhu21 commented on Mar 26, 2020

    @zhujinhu21
    Author

    我是webapi项目 ,目标框架 netcore 2.2 ,vs2017工具

    PM> Install-Package Magicodes.IE.Excel -Version 2.1.4
    正在还原 D:\Work\isolate_user\room_user\api\cov19_api\cov19_api\cov19_api.csproj 的包...
    Install-Package : NU1107: Microsoft.Extensions.Configuration 中检测到版本冲突。直接安装/引用 Microsoft.Extensions.Configuration 3.1.0 到项目 cov19_api 可解决此问题。
    cov19_api -> Magicodes.IE.Excel 2.1.4 -> EPPlus 4.5.3.3 -> Microsoft.Extensions.Configuration.Json 3.1.0 -> Microsoft.Extensions.Configuration (>= 3.1.0)
    cov19_api -> Microsoft.AspNetCore.App 2.2.0 -> Microsoft.Extensions.Configuration (>= 2.2.0 && < 2.3.0).
    所在位置 行:1 字符: 1

    • Install-Package Magicodes.IE.Excel -Version 2.1.4
    •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
      
      

    Install-Package : 程序包还原失败。正在回滚“cov19_api”的程序包更改。
    所在位置 行:1 字符: 1

    • Install-Package Magicodes.IE.Excel -Version 2.1.4
    •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
      
      
  8. zhujinhu21 commented on Mar 26, 2020

    @zhujinhu21
    Author

    ConsoleApp5.zip

    其中的WebApplication1项目不能添加Magicodes.IE.Excel 2.1.4

  9. xin-lai commented on Mar 27, 2020

    @xin-lai
    Collaborator

    收到。

  10. self-assigned this
    on Mar 27, 2020
  11. added this to the 2.2 milestone on Mar 27, 2020
  12. xin-lai commented on Mar 27, 2020

    @xin-lai
    Collaborator

    这是EPPlus的坑,已解决:

    Install-Package Magicodes.IE.Excel -Version 2.2.0-beta5
  13. zhujinhu21 commented on Mar 27, 2020

    @zhujinhu21
    Author

    用2.2.0-beta5从excel导入数据报错

    System.Drawing.Common 要用System.Drawing.Common (>= 4.6.0-preview6.19303.8)的包才行,4.7.0包找不到dll
    ConsoleApp5.zip
    里面valuescontroller是个测试

  14. xin-lai commented on Mar 27, 2020

    @xin-lai
    Collaborator

    已经找到原因,将尽快处理

  15. xin-lai commented on Mar 27, 2020

    @xin-lai
    Collaborator
  16. xin-lai commented on Mar 27, 2020

    @xin-lai
    Collaborator

    Install-Package Magicodes.IE.Excel -Version 2.2.0-beta6

  17. zhujinhu21 commented on Mar 27, 2020

    @zhujinhu21
    Author

    ok,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions