esciencecenter-digital-skills / training-infrastructure

collection of files used in setting up the new training infrastructure
Apache License 2.0
0 stars 0 forks source link

Dates in dutch #65

Open FenneRiemslagh opened 1 year ago

FenneRiemslagh commented 1 year ago

When Fenne runs the infrastructure package it creates a communication document with all the dates in dutch! This might be because her laptop is set to dutch, but can we make the infrastructure package independent of this?

bvreede commented 1 year ago

Sounds fun 🙃 I'll take a look!

FenneRiemslagh commented 1 year ago

Fixed it by running Sys.setlocale("LC_ALL", "en_US.UTF-8")

#troubleshoot
library(traininginfrastructure)
data <- read_from_drive(year = "2023")
data <- get_future_workshops(data)
data_R <- data[2, ]
get_comms_doc_info(data_R)
data_R$startdate
strftime(data_R$startdate, format ="%A, %e, %b")
Sys.setlocale("LC_ALL", "en_US.UTF-8")