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

Output from DateTime.UtcNow seems to be wrong in ESP32 #494

Closed
josesimoes opened this issue Jun 24, 2019 · 1 comment · Fixed by nanoframework/nf-interpreter#1384
Closed

Comments

@josesimoes
Copy link
Member

Details about Problem

Target: ESP32

Firmware image version: 1.0.4.500

Worked before? If so, with which nanoFramework image version:

Description

The output from DateTime.UtcNow seems to be off.

Detailed repro steps so we can see the same problem

  1. Run this simple code block:
            Console.WriteLine($"{DateTime.UtcNow.ToString()}");
            Console.WriteLine($"{DateTime.UtcNow.ToString()}");
            Console.WriteLine($"{DateTime.UtcNow.ToString()}");
            Console.WriteLine($"{DateTime.UtcNow.ToString()}");
  1. The output is:
    image

Other suggested things

Expected behaviour

This is the output from the same code running on an STM32F769I-DISCO:
image

@AdrianSoundy
Copy link
Member

Issue is caused by latest millisec change.

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

Successfully merging a pull request may close this issue.

2 participants