Skip to content

Commit

Permalink
f0043 hotfix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
adesutherland committed Sep 20, 2020
1 parent bada761 commit f534bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion time.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ char *ctime(const time_t *timer)
struct tm *localtime(const time_t *timer)
{
#if defined(__CMS__)
return (gmtime(timer) + __zone() );
time_t local_timer = *timer + __zone();
return (gmtime( &local_timer ));
#else
return (gmtime(timer));
#endif
Expand Down

0 comments on commit f534bd8

Please sign in to comment.