【问题标题】:Windows Azure Mobile Services Time(mssql) JSON serialization errorWindows Azure 移动服务时间(mssql)JSON 序列化错误
【发布时间】:2012-09-19 20:55:30
【问题描述】:

我遇到了 SQL 中时间数据类型的问题。我正在使用此处描述的 TimespanConverter http://blogs.msdn.com/b/carlosfigueira/archive/2012/08/30/supporting-arbitrary-types-in-azure-mobile-services-managed-client-simple-types.aspx,它可以很好地插入数据,但是在检索它时会返回通用格式的 DateTime(没有正确位置的时间)。例如,“14:45:00”的时间将返回“0013-12-31T00:00:00.000Z”,而在“09:00:00”之前的时间将返回 null。

还有其他人面临同样的问题吗?

提前致谢!

(也在这里发布:http://social.msdn.microsoft.com/Forums/en-US/azuremobile/thread/5110ed4b-7912-49d9-9e6c-9acd9277d52b

【问题讨论】:

    标签: json azure windows-runtime azure-mobile-services


    【解决方案1】:

    这已被确认为 Microsoft 的 Node JS SQL 驱动程序的问题:

    “我能够在 node-sqlserver 本身内重现该问题。我们将着手修复。感谢您提请我们注意。”

    来自http://social.msdn.microsoft.com/Forums/en-US/azuremobile/thread/5110ed4b-7912-49d9-9e6c-9acd9277d52b

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-07
      • 1970-01-01
      • 2014-06-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多