Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 2a0f989

Browse filesBrowse files
Auto-merge pull request #7389 from livecodeian/bugfix-22802
[[ Bug 22802 ]] Fix crash in HTML5 standalones when fetching the system date or system time This patch fixes a crash fetching system date & time values by using the posix implementation of MCS_getdatetimelocale, which was previously missing from the emscripten engine. Closes https://quality.livecode.com/show_bug.cgi?id=22802
2 parents 683beca + f610335 commit 2a0f989
Copy full SHA for 2a0f989

File tree

Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed

‎docs/notes/bugfix-22802.md

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix crash in HTML5 standalones when fetching the system date or system time

‎engine/src/sysunxdate.cpp

Copy file name to clipboardExpand all lines: engine/src/sysunxdate.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ bool MCS_secondstodatetime(double p_seconds, MCDateTime& r_datetime)
155155

156156
////////////////////////////////////////////////////////////////////////////////
157157

158-
#if defined(_LINUX_DESKTOP) || defined(_LINUX_SERVER)
158+
#if defined(_LINUX_DESKTOP) || defined(_LINUX_SERVER) || defined(__EMSCRIPTEN__)
159159

160160
#include <locale.h>
161161
#include <langinfo.h>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.