Skip to content

set_time not working on LPC1768 #7380

Closed
@janfwesterkamp

Description

@janfwesterkamp

Description

Using the time example from https://os.mbed.com/docs/latest/reference/time.html and updating mbed-os
to the newest version (03196b2) in the mbed online compiler returns the following in the terminal:

Time as seconds since January 1, 1970 = -1
Time as a basic string = Sun Jan 1 00:00:00 1900
Time as a custom formatted string = 12:00 AM

The expected result would have been:

Time as seconds since January 1, 1970 = 1256729737
Time as a basic string = Wed Oct 28 11:35:37 2009
Time as a custom formatted string = 11:35 AM

Also not working is revision 866850a (5.9.0).
The last working revision with the expected result is 35fa909 (5.8)

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions