File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tutorcruncher-socket" ,
3- "version" : " 1.3.9 " ,
3+ "version" : " 1.3.10 " ,
44 "description" : " TutorCruncher socket" ,
55 "author" :
" Samuel Colvin <[email protected] >" ,
66 "private" : false ,
Original file line number Diff line number Diff line change @@ -37,12 +37,11 @@ const FORMAT_OPTIONS = {
3737}
3838
3939export function format_dt ( ts , fmt ) {
40- // timestampts are alwasy in utc thus we need to add the 0000 and js will take care of the rest
41- const d = new Date ( ts + '+0000 ' )
40+ // timestampts are always in utc thus we need to add the Z and js will take care of the rest
41+ const d = new Date ( ts + 'Z ' )
4242 let options = FORMAT_OPTIONS [ fmt ]
4343 if ( ! options ) {
4444 console . warn ( 'unknown date format:' , fmt )
45-
4645 }
4746 return Intl . DateTimeFormat ( locale , options ) . format ( d )
4847}
You can’t perform that action at this time.
0 commit comments