Skip to content

Commit

Permalink
fiz timezonedb
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Henrique Lelis de Almeida committed Oct 17, 2023
1 parent f9c976b commit 3d63904
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 13 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ RUN apt-get install -y \
RUN pecl channel-update pecl.php.net
RUN pecl install redis-4.3.0
RUN docker-php-ext-enable redis
RUN pecl install timezonedb
RUN docker-php-ext-enable timezonedb
RUN docker-php-ext-configure zip --with-libzip
RUN docker-php-ext-install mcrypt pdo pdo_pgsql gd curl intl zip

Expand Down
2 changes: 1 addition & 1 deletion config/php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ display_errors = off
log_errors = true

[Date]
date.timezone = "America/Fortaleza"
date.timezone = "America/Sao_Paulo"
6 changes: 5 additions & 1 deletion docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ services:
networks:
- runcodes-net
environment:
TZ: "America/Sao_Paulo"
RUNCODES_DOMAIN: http://localhost:8080
RUNCODES_S3_PUBLIC_ENDPOINT: http://localhost:8333

# Compiler Engine
rcc:
image: ghcr.io/runcodes-icmc/compiler-engine:latest
restart: unless-stopped
environment:
TZ: "America/Sao_Paulo"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
Expand All @@ -26,7 +29,8 @@ services:
image: ghcr.io/runcodes-icmc/database:latest-development
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=secret_password
TZ: "America/Sao_Paulo"
POSTGRES_PASSWORD: secret_password
volumes:
- runcodes-db-vol:/var/lib/postgresql/data
networks:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
networks:
- runcodes-net
environment:
TZ: "America/Sao_Paulo"
RUNCODES_DOMAIN: http://localhost:8080
RUNCODES_S3_PUBLIC_ENDPOINT: http://localhost:8333

Expand All @@ -16,7 +17,8 @@ services:
image: ghcr.io/runcodes-icmc/database:latest-development
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=secret_password
TZ: "America/Sao_Paulo"
POSTGRES_PASSWORD: secret_password
volumes:
- runcodes-db-vol:/var/lib/postgresql/data
networks:
Expand Down
2 changes: 1 addition & 1 deletion src/app/Config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Timezone *
************/
if (!ini_get('date.timezone')) {
date_default_timezone_set('America/Fortaleza');
date_default_timezone_set('America/Sao_Paulo');
}

/*******************
Expand Down
8 changes: 3 additions & 5 deletions src/app/View/Elements/por/homeRightBar.ctp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<a href="/"><img src="/img/logoblue.png" alt="run.codes" /></a>
<a href="/"><img src="/img/logo.png" alt="run.codes" /></a>
<br><br>
<!-- <h5>ICMC</h5> -->
<p> O run.codes é um sistema de submissão e correção automática de exercícios de programação, com suporte a
diversas linguagens como C/C++, Python, Java, Haskell, GoLang, dentre outras.</p>
<a href="https://icmc.usp.br/" class="btn btn-lg btn-info" target="_blank">Conheça mais sobre o ICMC</a>
<br><br>
<p class="rc-description"> O run.codes é um sistema de submissão e correção automática de exercícios de programação, com suporte a
diversas linguagens como C/C++, Python, Java, Haskell, GoLang, dentre outras.</p>
22 changes: 18 additions & 4 deletions src/app/webroot/css/login2.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url("../img/unfolding4.jpg") center center fixed no-repeat;
background-size: cover;
-moz-background-size: cover;
filter: brightness(0.5);
}

body {
background: url("../img/unfolding4.jpg") center center fixed no-repeat;
background-size: cover;
-moz-background-size: cover;
overflow: hidden;
font-family: 'Raleway', sans-serif;
}
Expand All @@ -12,6 +22,10 @@ body {
font-weight: 200;
}

.rc-description {
max-width: 800px;
}

.welcome-area {
position: absolute;
top: 0px;
Expand Down Expand Up @@ -210,4 +224,4 @@ body {
.error-code {
font-size: 60px;
margin: 0;
}
}

0 comments on commit 3d63904

Please sign in to comment.