Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
time fix (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 authored Apr 24, 2024
1 parent 9e7d94a commit b3ae4e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/__HELPERS/time.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ GLOBAL_VAR_INIT(rollovercheck_last_timeofday, 0)


/proc/gameTimestamp(format = "hh:mm:ss", wtime = world.time)
return time2text(wtime - GLOB.timezoneOffset, format)
return time2text(wtime, format, 0)


/proc/stationTimestamp(format = "hh:mm:ss", wtime = world.time)
return time2text(wtime - GLOB.timezoneOffset + (12 * 36000), format)
return time2text(wtime + (12 * 36000), format, 0)


//returns timestamp in a sql and a not-quite-compliant ISO 8601 friendly format
Expand Down
2 changes: 1 addition & 1 deletion code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ GLOBAL_VAR(restart_counter)
/world/New()
log_world("World loaded at [time_stamp()]!")

GLOB.timezoneOffset = text2num(world.timezone) * 36000
GLOB.timezoneOffset = world.timezone * 36000

//First possible sleep()
InitTgs()
Expand Down

0 comments on commit b3ae4e8

Please sign in to comment.